in reply to Mail::Mailer question

you should check that the mailer object exists. for example:

$mailer= Mail::Mailer->new(...) or die qq{$0: Can't create mailer object: $!};

you can further inspect the $mailer object with Data::Dumper

use Data::Dumper; $Data::Dumper::Indent= 1; print Dumper $mailer;

~Particle *accelerates*