View Full Version : need help: how to send Rich-html Emails ?

08-08-2002, 02:01 AM
i wonder how to send Emails with some html ?

maybe file attachment could work


08-08-2002, 08:15 PM
Just put a Content-Type: text/html line somewhere in the mail headers. i.e. if you've got a mail script already going which looks like this:

print MAIL "To: bob@domain.com\n";
print MAIL "From: susan@somewhere.com\n";
print MAIL "Subject: Monkey brains taste better in soup\n\n";
print MAIL "Hello.";

You'd just need a line going:

print MAIL "Content-type: text/html\n";

before the main content starts.