Problems? Is your data what you think it is? | |
PerlMonks |
Re: Mail::Sender connection failing under CGIby hossman (Prior) |
on Feb 28, 2004 at 00:42 UTC ( [id://332428]=note: print w/replies, xml ) | Need Help?? |
A quick peek at the source for Mail::Sender v0.8.10 indicates that a message similar to the one you mentioned is generated by the SERVNOTAVAIL error method, which seems to get used if and only if the method get_response returns a value which does not start with a 1, 2, or 3 immediately after connecting to a server. The return value of get_response seems to be a slightly cleaned up version of whatever the remote SMTP server sent across the wire, so if it doesn't start with a 1, 2 or 3 -- then it would seem that your SMTP server is reporting back and error code as soon as you connect. There seem to be an undocumented "$Mail::Sender::LastResponse" that you can try logging immediately after failure to see exactly what the response from the SMTP server was. My guess: when you put this on your website, it started getting hit so much, your server occasionally respondes back with "busy" signal (maybe 554 .. but it could be any error code)
In Section
Seekers of Perl Wisdom
|
|