in reply to Mail Sender Problem
It looks like you aren't checking the return codes from the methods. By default, Mail::Sender functions return undef on failures. It supports die'ing instead on errors which saves having to check every method. Also, it supports printing out debugging messages to a file or STDOUT.
my $sender = Mail::Sender->new({ on_errors => 'die', debug => \*STDOUT });
|
|---|