
Send Email in HTML format
If you're starting from an HTML file, read its content into a string
variable and set that HTMLBody equal to that variable.
--
Sue Mosher, Outlook MVP
Author of
Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours
Microsoft Outlook 2000 E-mail and Fax Guide
Outlook and Exchange solutions at http://www.slipstick.com
Quote:
> Can I grab an HTML file and place it in the email? Or do I have to read
the
> HTML into a variable to set it in strMessage?
> Derek
> > Set HTMLBody, not Body. strMessage would need to be the fully tagged
HTML
> > you want to display in the message.
> > > I am programming in Office 97. I am programming from Access to send
an
> > > email to Outlook in VBA. I am using code such as the following to
send
> > the
> > > email:
> > > With objMessage
> > > .To = "John Smith"
> > > .Subject = "Order Acknowledgement"
> > > .Body = strMessage
> > > .Send
> > > End With
> > > How can I send an HTML file, not as an attachment, but as the text
that
> is
> > > sent in the body? What properties can I set? Can somebody point me
to
> a
> > > code sample?
> > > Thank You,
> > > Derek