Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Making Net::SMTP Robust: Return Codes
May 27, 2005, 4:16 pm
rate this thread
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
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?
Re: Making Net::SMTP Robust: Return Codes
If you look at the documentation for Net::SMTP:
you will see:
Then, looking at
you will notice the ok, code, message, and status methods.
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
- » FAQ 9.23 How do I find out my hostname/domainname/IP address?
- — Previous thread in » PERL Discussions