Using SendObject with acFormatHTML

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

has anyone succeeded to fire up an Email with real html content by doing:

DoCmd.SendObject acSendNoObject, , acFormatHTML..........

what is the acFormatHTML option there for if SendObject dosnt turn on the
html option in the mail client ?
 
Henry said:
has anyone succeeded to fire up an Email with real html content by
doing:

DoCmd.SendObject acSendNoObject, , acFormatHTML..........

what is the acFormatHTML option there for if SendObject dosnt turn on
the html option in the mail client ?

It is there to create an HTML attachment for the message as opposed to an Excel,
Word, or Text attachment.
 
I thought it defines the data format of the actual email message. How do you
pass on the attachment as part of the SendObject call ?
 
Henry said:
I thought it defines the data format of the actual email message. How
do you pass on the attachment as part of the SendObject call ?

You don't as far as I know. Access has no idea which Email client the user
might have so there is no way for it to manipulate properties of the message
other than to supply the data.

You can use automation against Outlook, CDO or various other messaging
libraries and then have the ability to do such stuff, but not when using
SendObject. See example code at link below...

http://www.mvps.org/access/modules/mdl0019.htm
 
Back
Top