in reply to sendmail script

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


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: sendmail script
by ikegami (Patriarch) on Feb 20, 2006 at 23:41 UTC

    You introduced an error.

    From =>'senders\@email.address', To =>'my\@email.address',

    should be

    From =>'senders@email.address', To =>'my@email.address',

    or

    From =>"senders\@email.address", To =>"my\@email.address",