http://www.perlmonks.org?node_id=637250


in reply to Re^3: Error message not showing up from Net::SMTP
in thread Error message not showing up from Net::SMTP

Thanks for the details. Augmenting the print statement with
$mail->code,':',$mail->message,"\n";
does indeed display the desired error message.