Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Picture in e-mail html body
Message
From
26/08/2004 08:01:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Picture in e-mail html body
Miscellaneous
Thread ID:
00936552
Message ID:
00936552
Views:
33
Hello, using the 'Outlook.Application'-object i'm trying to send an email with a HTML-body. In this HTML-body I'm using an image which must be visible in the body.
My question: how can I add the image to the mail when sending the mail ? I tried to add the image as an attachment but when sending the mail the image is added as an attachment but in the body the link to the image is broken.
loOutlook = CREATEOBJECT("Outlook.Application")
loMail = loOutlook.CreateItem(0)		&& Email
loMail.Subject = "Hello"
loMail.Recipients.Add("tim@tml.be")
loMail.Attachments.Add("c:\dbfactw\logo.jpg")
loMail.HTMLBody = [<html><body bgcolor="#00CCFF"><img src=c:\dbfactw\logo.jpg" width="403" height="372"></body></html>]
loMail.Send()
Next
Reply
Map
View

Click here to load this message in the networking platform