PDA

View Full Version : Creating Headers with VBA?



GerbilGod7
05-22-2006, 12:08 PM
I'm using VBA to create customized HTML newsletters from information in an Excel database. I want to have Outlook automatically compose the emails in both plaintext and HTML format using multipart/alternative MIME boundaries. As far as I know, I can add all of my plaintext, MIME boundaries, and HTML using "olMail.Body =", but how to I use VBA to add the boundary designation to the header? Like, I need to amend the header with 2 lines, pretty much:

MIME-Version: 1.0
Content-Type: multipart/alternative; Boundary="[Boundary]"

Thanks!