Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Embedded grafics in Outlook HTML e-mails
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00510066
Message ID:
00510484
Views:
16
>How can I add emmbedded images in Outlook HTML e-Mails, the following code works fine, I just need the image attachment commands!
>
>oOutlook = CREATEOBJECT ( "Outlook.Application" )
>oMessage=oOutlook.CreateItem(0)
>oMail.recipients.Add('jorgeflores@humsoftware.com')
>oMail.Subject='Test Message with Images'
>oMail.HTMLBody=filetostr('C:\MyFileWithImageReferences.htm')
>*---
>*Needed code Here!
>*---
>oMail.Send
Jorge,
try something like

cAutoAttach= Sys(2023)+"\ttool.bmp"
With MailItem
.Attachments.Add (cAutoAttach)

Edgar
Edgar L. Bolton, B.S. B.B.A.
Previous
Reply
Map
View

Click here to load this message in the networking platform