Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement