Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send Mail
Message
De
12/04/2000 12:58:04
 
 
À
10/04/2000 19:40:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00357592
Message ID:
00358777
Vues:
12
Here is my bit of code I use
oOutlookObj = CREATEOBJECT("Outlook.Application")
oNamespace = oOutlookObj.GetNamespace("MAPI")
oNamespace.logon( , , 1,1)
select tomail
scan for empty(tomail.sent)
	newMessage = oOutlookobj.createitem(0)
	newmessage.recipients.add(tomail.emailadd)
	newmessage.Subject=alltrim(tomail.subject)
*	newmessage.Attachments.add('thistest.txt')
	*-
	Bodytext=Tomail.body
	newmessage.body=Bodytext
	newmessage.send
	replace tomail.sent with .t., dandtsent with datetime()
ENDSCAN
rele oOutlookObj
Hope it helps
Iain Brodie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform