snoopy6129
MIS
I've been used DoCmd.SendObject to generate emails in plain text. That's been working out great.
Now, I'm trying to use DoCmd.SendObject to generate an HTML formatted email instead (for looks essentially). If I remember correctly, I've read in the past that DoCmd.SendObject can also generate HTML formatted emails.
However, after writing up the code to test it out, I get an unexpected result. The DoCmd.SendObject did generate an HTML document, however, it end up being an attachment in my Outlook Express instead.
Below is my code (DIM statement, etc, stripped for readability):
Although I never written codes with DoCmd.SendObject to generate HTML, I was under the impression that it can generate HTML formatted emails not generate an HTML file to be used as an attachment in your email.
Am I wrong or overlooking something simple and embarrassing? Any input on how I can get DoCmd.SendObject to generate the HTML formatted email I need who be appreciated.
I'm using Access 2003, Outlook Express 6 (with my Mail Sending Format option set to HTML as oppose to Plain text).
Thanks in advance for your input.
-Pete
Now, I'm trying to use DoCmd.SendObject to generate an HTML formatted email instead (for looks essentially). If I remember correctly, I've read in the past that DoCmd.SendObject can also generate HTML formatted emails.
However, after writing up the code to test it out, I get an unexpected result. The DoCmd.SendObject did generate an HTML document, however, it end up being an attachment in my Outlook Express instead.
Below is my code (DIM statement, etc, stripped for readability):
Code:
DoCmd.SendObject acSendReport, strReportName, acFormatHTML, strEmailTo, , , strEmailSubject, , True
Although I never written codes with DoCmd.SendObject to generate HTML, I was under the impression that it can generate HTML formatted emails not generate an HTML file to be used as an attachment in your email.
Am I wrong or overlooking something simple and embarrassing? Any input on how I can get DoCmd.SendObject to generate the HTML formatted email I need who be appreciated.
I'm using Access 2003, Outlook Express 6 (with my Mail Sending Format option set to HTML as oppose to Plain text).
Thanks in advance for your input.
-Pete