ghenry has asked for the wisdom of the Perl Monks concerning the following question:
Dear Master Monks,
This is really doing my head in. I keep getting:
From: Date: Subject: Unknown Unknown date (no subject)
Here's the code:
my $to = '"Gavin Henry" <ghenry@perl.me.uk>'; my $from = '"Support" <support@perl.me.uk>'; $smtp = Net::SMTP->new('relay.plus.net'); $smtp->mail("$from"); $smtp->to("$to"); $smtp->data(); $smtp->datasend("To: " . $to), $smtp->datasend("From:" . $from), $smtp->datasend("Subject: Rsync backup success on $date"), $smtp->datasend("The remote backup has been completed.\n\n" ."Info:\n\n" ."\n$rsync\n"); $smtp->dataend();
I'm pretty sure it's something really stupid.
Thanks,
Gavin.
|
|---|