Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to send mails with files attachment from vfp
Message
From
03/09/2008 14:03:43
 
 
To
03/09/2008 11:54:01
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01344536
Message ID:
01344605
Views:
51
>how to send mails with files attachment from vfp

Here's my code for doing that:

theApp = CreateObject("Outlook.Application")
theNameSpace = theApp.GetNameSpace("MAPI")
theMailItem = theApp.CreateItem(0)

theMailItem.Subject = thisform.pdf_subject
theMailItem.Attachments.Add(thisform._filename)

themailitem.display()
Previous
Reply
Map
View

Click here to load this message in the networking platform