Forum Moderators: phranque
I'm trying to send an HTML newsletter from my forums (IPB) to all my registered members.
I host my own site and have my own mail server (Exchange 2000) so the forums are supposed to connect to the mail server and it then sends the email.
During testing the email shows up but you see the HTML tags (as opposed to a properly formatted HTML document).
The preview that's generated by the forums shows correct formatting yet when I send the test email I see HTML tags.
I've checked the email using Hotmail, Outlook & Outlook Express. All show the HTML tags.
What am I doing wrong?
content-type: text/plain
The receiving mail program interprets this to mean that hey, this email is plain text. So it renders it as such.
When sending out the mail, the sending program should send a couple extra headers:
print MAIL "Content-Type: text/html; charset=US-ASCII\n";
print MAIL "MIME-Version: 1.0\n";
I'm not sure how to tell you to configure this, it may very well be your BB software doesn't have a method of controlling the content-type.
On an unrelated issue, you have to make sure the entire document is actually valid html - not having an opening <html> element will add to your SpamAssassin score.
I agree, that must be it. Also, thanks for the tips on the HTML formtatting. I'll pass the email through one on those validation sites to be sure it's 100% correct HTML before the actual send.
On a separate note, do you know of any good freeware programs for sending bulk mail? Otherwise it looks like I'm going to have to find someone who can do some PHP programming for me :-(