9 posts in this topic

Jewtus 17

$HTMLsource=FileRead('C:\Users\n811761\Desktop\Test.htm')$emailAddress='Test@Fake.com'$olApp=ObjCreate("Outlook.Application")$olMailItem=0$objMail=$olApp.CreateItem($olMailItem)$objMail.SaveWith$objMail.To=($emailAddress).Subject=("Thank You for Contacting!").HTMLBody=($HTMLsource).DisplayEndWith$oOApp=0

The problem I'm having is that the HTML file has references to image files.

I was looking at GDIPlus, and it seems like I should be able to convert the image files into a string that I can save so the HTML becomes self contained, but I'm not sure exactly how. I've attached a copy of the HTML and its resource files. If someone could steer me in the right direction, that would be great.