Jul 26

INSTALLATION

perl -MCPAN -e “install Mail::Sendmail”

USING

use Mail::Sendmail;

%mail = ( To      => ‘todestination@domain.com’,
            From    => ‘fromme@domain.com’,
            Message => “This is a test message”
  ); 

sendmail(%mail) or die $Mail::Sendmail::error;

print “OK. Log says:\n”, $Mail::Sendmail::log;

written by MG