Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Emails
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01058904
Message ID:
01058907
Views:
15
>I understand you can create emails in a visual foxpro app that are sent when you log into Outlook. Can anyone direct me to information detailing how to create emails in VFP to be automatically sent?
>
>Thanks,
>
>Brad Trim
>ssc@worldnet.att.net
olMailItem = 0
oOutLookObject = CreateObject("Outlook.Application")
oEmailItem = oOutLookObject.CreateItem(olMailItem)
WITH oEmailItem
   .To   = "who@where.com"
   .CC   = "who@where.com"
   .BCC  = "who@where.com"
   .Attachments.add("c:\somefile.txt"
   .Subject = "This is the Subject"
   .Send()
ENDWITH
Be aware that with Outlook, if it's a later version or has the security patch installed, you may have to use a product like Redemption or ClickYes to bypass the security dialog.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform