Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
E-mail Automation
Message
From
23/12/2000 20:51:57
 
 
To
22/12/2000 17:36:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00456519
Message ID:
00456632
Views:
26
>>>>>>>>>>>>>>>>>>>
>How do I send e-mails to all of our e-mail addresses in a Visual Foxpro table? We use Outlook 2000. Thanks.
>>>>>>>>>>>>>>>>>>>

You can use Outlook itself through automation:

#DEFINE MAILITEM 0
#DEFINE IMPORTANCELOW 0
#DEFINE IMPORTANCENORMAL 1
#DEFINE IMPORTANCEHIGH 2

oOutLookObject = CreateObject("Outlook.Application")
oEmailItem = oOutLookObject.CreateItem(MAILITEM)

WITH oEmailItem
.To = "larryfine@3stooges.com"
.Subject = "Automation sample"
.Importance = IMPORTANCENORMAL
.Body = "This is easy!"
.Attachments.Add("c:\mydir\sample.txt") && Note that the fully qualified path and file is required.
.Send
ENDWITH


HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform