"afrinspray" <> wrote in
news: oups.com:
> 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 <>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/cl...uidelines.html