Be nice to those who choose not to receive html mail:
open (MAIL, "|/usr/sbin/sendmail -t -oi") || die "Can't fork for sendmail:$!\n"; print MAIL <<EOF; From: from_email_address To: to_email_address Subject: subject here Date: date here MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart" ------_=_NextPart Content-Type: text/plain; charset="iso-8859-1" plain text here ------_=_NextPart Content-Type: text/html; charset="iso-8859-1" <html> <body bgcolor="white"> HTML mail here <hr><br><font size="-1"> </font> </body></html> ------_=_NextPart-- EOF close(MAIL) || warn "sendmail didn't close nicely\n"; -----Original Message----- From: Scott Lutz [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 3:30 PM To: jeff; [EMAIL PROTECTED] Subject: RE: How can I send an HTML format email using send mail You have to make sure to include the appropriate content type. open (MAIL, "|/usr/sbin/sendmail -t -oi") || die "Can't fork for sendmail:$!\n"; print MAIL <<EOF; From: from_email_address To: to_email_address Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 8bit\n\n Subject: subject\n\n _data_to_be_sent_ EOF close(MAIL) || warn "sendmail didn't close nicely\n"; Scott Lutz technical support Pacific Online http://www.paconline.net -----Original Message----- From: jeff [mailto:[EMAIL PROTECTED]] Sent: December 17, 2001 9:38 AM To: [EMAIL PROTECTED] Subject: How can I send an HTML format email using send mail Does anyone know how to send an HTML formatted email using sendmail. I can send plain text email OK. If I format the message using HTML the message shows the HTML tags. I can't find any information regarding this on cpan. Are there any other modules that have this capability? Any help is greatly appreciated. Jeff -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]