Sending a saved .htm file as email

  • Thread starter Thread starter Alphaboomer
  • Start date Start date
A

Alphaboomer

Your help would be appreciated!

I need to be able to send an HTM message I created in Word as the body
of an email message. I'm sending the message from a VB module in
Access 2000, and I'm using Outlook 2000 as the mail program.

Using either MAPI, CDO or some other way, how can I set the body of
the message to the contents of the file. I don't want to send the
file as an attachment - I want it to be the body of the email.

Thanks
 
After you open the file in Word as a Word.Document you can get the
text as a string variable and then assign the string to the item.Body
property of the mail item.
 
PMJI, but I think you mean HTMLBody, not Body.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top