Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending Mail through Visual Foxpro
Message
De
31/10/2001 08:31:56
Ashish Patel
Hindustan Petroleum
Mumbai, Inde
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Sending Mail through Visual Foxpro
Divers
Thread ID:
00575573
Message ID:
00575573
Vues:
54
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
Fil
Voir

Click here to load this message in the networking platform