I am trying to use Net::SMTP which is failing on the 'mail' method. Unfortunately there is no error information so I don't know how to debug this. I turned debugging on but I do not know how to interpret the output.
Net::SMTP=GLOB(0x971d1b8)<<< 221 ...
The connection seems to work because it does not die on the 'new'.
my $smtp=Net::SMTP->new("mailer.mydomain.com") || die("Cannot open connection: $!\n");
$smtp->mail('myemail') || die("Cannot set sender: $!\n");
There does not seem to be much that can do wrong this soon in the code but obviously I've found something. Can someone help me debug this? TIA.