Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send Mail
Message
From
12/04/2000 12:58:04
 
 
To
10/04/2000 19:40:15
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00357592
Message ID:
00358777
Views:
11
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
Previous
Reply
Map
View

Click here to load this message in the networking platform