in reply to Re^4: getting SMTP failure codes
in thread getting SMTP failure codes

If you used strict or warnings, Perl would tell you what goes wrong.