http://www.perlmonks.org?node_id=191777


in reply to Form mail script

try this if you're using Net::SMTP :
$mail->data(); $mail->datasend("To: you@you.com"); $mail->datasend("From: me@me.com\n"); $mail->datasend("Subject: Subject Text\n"); $mail->datasend("\n"); $mail->datasend("Email content\n\n"); $mail->dataend();
for sending HTML , set the Content-type of the mail object to "text/html" hth