I've just recently been getting this message, without changing any files on the server. I can send an email to myself using thunderbird so I know the server is responsive and running. But my emails through my web site are not sending.
Fatal error: Uncaught exception 'Swift_ConnectionException' with message 'The SMTP connection failed to start [smtp.1and1.com:25]: fsockopen returned Error Number 42 and Error String ''' in /home/bluesurf/public_html/lib/Swift/Connection/SMTP.php:309
What could have happened?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Will this prevent fatal errors from happening in the future?
I want to allow the script to continue if the email sending fails.
I would try it but this system is live.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
scottay, you'd have to put some logic in the catch() block to ensure Swift is restarted and/or the error is handled. Swift wouldn't stop if it could easily carry on (in the case the connection was refused so swift couldn't just carry on ignoring that fact )
Well, on the pages where I'm just sending a single email, then it would work.. right? I mean swift would error out (because it can't connect) but the rest of my script would continue.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
scottayy wrote:Well, on the pages where I'm just sending a single email, then it would work.. right? I mean swift would error out (because it can't connect) but the rest of my script would continue.