Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Trapping server responses with Net::SMTP

by rhesa (Vicar)
on Oct 21, 2008 at 21:11 UTC ( [id://718593]=note: print w/replies, xml ) Need Help??


in reply to Trapping server responses with Net::SMTP

instead of
if ( $smtp->status() =~ /^[45]$/ ) {
you could use
if ( ! $smtp->ok ) {

Replies are listed 'Best First'.
Re^2: Trapping server responses with Net::SMTP
by yaelc (Novice) on Feb 04, 2009 at 12:22 UTC
    which status value indicates success? which indicate failure (other than 4/5)? I tried $smtp->ok and it did not seem to accurately reflect success/failure.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-20 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found