email from html template

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

What is the vba code to create a new email using an html file as template?

Thanks

Regards
 
You basically have to read the text from the .html file using the
FileSystemObject.TextStream object and pass it all to the MailItem.HTMLBody
property.

There's some code you can steal from the download listed on this blog
article of mine that shows other ways of working with .html files and
stationery:

Applying Outlook Stationery to more than just new messages:
http://blogs.officezealot.com/legault/archive/2005/07/21/7581.aspx
 
Back
Top