I don't know about problems in the code as you presented it. But if it were me, I'd be using Mime::Lite for that job. The code would look something like (untested):
use MIME::Lite; my $msg = MIME::Lite->new( From =>'senders@email.address', To =>'my@email.address', Subject =>'this is the subject line', ); $msg->send ();
Update: remove bogus quoting pointed out by ikegami
In reply to Re: sendmail script
by GrandFather
in thread sendmail script
by keiusui
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |