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)
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()