in reply to about Net::SMTP
$s->datasend("Subject: $subject\n\n"); [download]
Some mail clients (maybe most, I dunno) need to see a completely blank line to separate the headers from the message body.
- Matt Riffle