General information
Category:
ActiveX controls in VFP
Title:
Sending Mail through Visual Foxpro
Hi
I am using the following code posted on 'Universalthread' for sending automated mails from the foxpro application.
-------------------------------------------------------------
=GW('ashishpatel@indbazaar.com','Hi From Ashish','This is a Test Message ','C:\x\x.DBF')
retu
PROCEDURE GW
LPARAMETERS cSendTo,cSubject,cMessage,cAttachment
oGW=CREATEOBJECT('NovellGroupwareSession')
x=oGW.LOGIN
oMsg=oGW.Login.RootFolder.Messages.Add
oMsg.Subject=cSubject
oMsg.BodyText=cMessage
oMsg.Attachments.Add(cAttachment)
oMsg.Recipients.Add(cSendTo,'NGW','0')
oMsg.Send
RELEASE oGW
------------------------------------------------
I am having the following doubts.
1. How can I asked the user to supply the "User Name" and "Password"
I have included x = OGW.LOGIN
which asks for the password only.
I want the applocation to display Novell Groupwise User authentication window and accept the User Name and Password.
2. If I run the above program then If I open Groupwise from the desktop it is not asking for User Name and Password and directly opening the mails.
This is a problem because in my company One PC is shared by differnt user's.
I am also checked the Target property of Groupwise ICON on desktop it is as follows.
C:\Novell\GroupWise\GrpWise.exe /@u-?
/@u-? is forcing the application to ask the user name and password. Isn't it ?
I think he object is not getting release properly.
Pl. Help
Thanks in Advance
Ashish Patel
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only