coSendObject

G

Guest

Hello All
I'm composing an email by using SendObject.
DoCmd.SendObject acSendNoObject, , acFormaHTML....
The massage body inc. Html tags.
but the email takes it like text only
can I pass the message body as an html and not like MS.dos-text ?
TNX, Eyal Semo
 
D

Dirk Goldgar

Eyal Semo said:
Hello All
I'm composing an email by using SendObject.
DoCmd.SendObject acSendNoObject, , acFormaHTML....
The massage body inc. Html tags.
but the email takes it like text only
can I pass the message body as an html and not like MS.dos-text ?
TNX, Eyal Semo

The OutputFormat argument (acFormatHTML in this case) defines the format
for the attached object, not for the message itself. You're not sending
any object, so it will have no effect.

SendObject always sends the message body in plain text. If you want to
use HTML format for that, you'll have to automate some other program.
For example, you can easily automate Outlook (assuming it's installed),
use it to create a message, and set the message's HTMLBody property to
your tagged text.
 
G

Guest

I have a similar problem. I am sending an e-mail with an attachment
(Marketing EMail) and the body of the message is to be a *.htm form. The
code I'm using is:

DoCmd.SendObject acSendDataAccessPage, "Marketing EMail", acFormatHTM,
U8RA10, , , strTitle, vbCrLf & vbLf & " ", True, "C:/Program Files/Common
Files/Microsoft Shared/Stationery/welcomeTemplate.htm"

I thought adding the template information would put the *.htm file in the
body of the e-mail but I'm not getting the desired results. Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top