in reply to Net::SMTP and templates/ here docs
$message = <<EOF; To : user Subject : Test foo bar baz EOF $smtp->datasend($message); [download]