Re: Making Net::SMTP Robust: Return Codes
- From: "A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 27 May 2005 20:03:25 GMT
"afrinspray" <afrinspray@xxxxxxxxx> wrote in
news:1117217817.512543.124510@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
> How do I get return codes from Net::SMTP commands? For example, I'd
> like to know if the recipient returns a 450 or 550 error on any of the
> Net::SMTP steps.
If you look at the documentation for Net::SMTP:
<URL: http://search.cpan.org/~gbarr/libnet-1.19/Net/SMTP.pm>
you will see:
SEE ALSO
Net::Cmd
Then, looking at
<URL: http://search.cpan.org/~gbarr/libnet-1.19/Net/Cmd.pm>
you will notice the ok, code, message, and status methods.
> Will it error out if one of these codes is returned? So if I put it in
> an eval, will the $@ contain a "450 could not connect" type of
> message?
See above.
Sinan
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
.
- Follow-Ups:
- Re: Making Net::SMTP Robust: Return Codes
- From: afrinspray
- Re: Making Net::SMTP Robust: Return Codes
- References:
- Making Net::SMTP Robust: Return Codes
- From: afrinspray
- Making Net::SMTP Robust: Return Codes
- Prev by Date: Re: FAQ 9.13 How do I edit my .htpasswd and .htgroup files with Perl?
- Next by Date: Regex - disincluding strings in a match
- Previous by thread: Making Net::SMTP Robust: Return Codes
- Next by thread: Re: Making Net::SMTP Robust: Return Codes
- Index(es):
Relevant Pages
|