A
Andrew R
Hi
I am trying to send an email with some information from a recordset as
part of a vba sub.
The preceding code builds up the variables which hold the email
address, the details to be put in the message and the subject line. I
then have this line of code:
DoCmd.SendObject , , acFormatHTML, strEmail, , "(e-mail address removed)",
rsEmail(3), strDetails, False,
"C:\databases\emailtemplates\Emailtostore.htm"
The field(3) referred to in the recordset holds my subject line. the
other variables are all declared and populating without problems.
My issue is that the email generates and sends, but as a plain text
email. The code above specifies both that this should be an HTML email
and the use of a template (in C:\Databases...) but both these seem to
be ignored. I've tried removing the Format argument to allow it to
simply pick up the HTML file as the template, but with no luck.
Anyone any ideas?
Thanks in advance
Regards
Andrew
I am trying to send an email with some information from a recordset as
part of a vba sub.
The preceding code builds up the variables which hold the email
address, the details to be put in the message and the subject line. I
then have this line of code:
DoCmd.SendObject , , acFormatHTML, strEmail, , "(e-mail address removed)",
rsEmail(3), strDetails, False,
"C:\databases\emailtemplates\Emailtostore.htm"
The field(3) referred to in the recordset holds my subject line. the
other variables are all declared and populating without problems.
My issue is that the email generates and sends, but as a plain text
email. The code above specifies both that this should be an HTML email
and the use of a template (in C:\Databases...) but both these seem to
be ignored. I've tried removing the Format argument to allow it to
simply pick up the HTML file as the template, but with no luck.
Anyone any ideas?
Thanks in advance
Regards
Andrew