Knowledgebase

Home > Item #189

ASPmail doesn't send HTML email properly

Item: #189
Date: 28 May 2002
Applies to
v4

Question

My CactuShop appears to have a problem sending HTML versions of the newsletter. I'm using ASPmail as my method of sending email. The mails contain the HTML sourcecode of the mail rather than actually displaying as HTML.

Answer

This problem seems to be a quirk with ASPmail related to attachment support. It only affects versions 4.1 to 4.208.

Open up the functions.asp file and find this line in the function called 'SendEmail' (about half-way down):

Mailer.AddAttachment pathtoattachment

Replace this with:

If pathtoattachment<>"" then
  Mailer.AddAttachment pathtoattachment
End if


Although attachments appear to be unrelated to HTML encoding, this fix does seem to correct the problem.

The scope of this mail problem is only limited to HTML versions of the newsletter mailing using ASPmail - all other mailsends are unaffected.

Can't find the answer you need? Click here to open a support ticket.

« Back