On 2/2/2007 3:25 PM, Romeo Theriault wrote:
$smtp->mail($from);
$smtp->to($to);
$smtp->data();
$smtp->datasend("To: $to\n");
$smtp->datasend("Subject: $subject\n");
$smtp->datasend($file);
$smtp->dataend();
Does $file begin with an empty line?
If not, you're not separating the header from the message body, and your
MUA thinks the whole message is a header.
$smtp->datasend("Subject: $subject\n");
$smtp->datasend("\n");
$smtp->datasend($file);
--
Jeremy Kister
http://jeremy.kister.net./
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/