HI all, I need help sending HTML emails with sendmail have tried this $from="foo\@bar.com"; $to= shift; ## yes this is enclosed in a function and I pass the email address as a parameter $subject="Latest News!"; $sendmailpath="/usr/sbin/sendmail";
open (SENDMAIL, "| $sendmailpath -t"); print SENDMAIL "Subject: $subject\n"; print SENDMAIL "From: $from\n"; print SENDMAIL "To: $to\n\n"; print SENDMAIL <<END; MIME-Version: 1.0 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <font color="#FF6666">ssssss</font> wibble </HTML> END close (SENDMAIL); All it does is send the emails as plain text, any suggestions Colin Johnstone Website Project Officer Corporate Website Unit Public Affairs Directorate ph 9561 8643