Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Mail::Sender connection failing under CGI

by hossman (Prior)
on Feb 28, 2004 at 00:42 UTC ( [id://332428]=note: print w/replies, xml ) Need Help??


in reply to Mail::Sender connection failing under CGI

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)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://332428]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-03-29 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found