Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Error message not showing up from Net::SMTP

by menolly (Hermit)
on Sep 05, 2007 at 17:53 UTC ( [id://637226]=note: print w/replies, xml ) Need Help??


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

Replace
print "ERROR: Could not authenticate user $user_id\n$!\n";
with
print "ERROR: Could not authenticate user $user_id\n$: ".$mail->messa +ge."\n";
or equivalent.

Replies are listed 'Best First'.
Re^4: Error message not showing up from Net::SMTP
by sg (Pilgrim) on Sep 05, 2007 at 20:12 UTC
    Thanks for the details. Augmenting the print statement with
    $mail->code,':',$mail->message,"\n";
    does indeed display the desired error message.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://637226]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-06-24 20:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.