Page 1 of 1

[SOLVED] Form Builder form - new SMTP error

Posted: Tue Dec 01, 2009 4:12 pm
by jocando
Hello

I set up a contact form using FormBuilder a few weeks ago. It worked OK (the only problem I had was the email I received had no carriage returns).

Today I tried to use the form, and I find it no longer works. I get this error message:

"Warning: fsockopen() [function.fsockopen]: unable to connect to mail.lit...pton.com:25 (Connection refused) in
/.../modules/CMSMailer/phpmailer/class.smtp.php on line 105
Sorry! There was an error handling your form submission.
   * SMTP Error: Could not connect to SMTP host."

I tried sending an email in CMSMailer, and that was fine.  I've sent test messages to and from my email account with no problem.  Does anyone have any idea what might be happening here?  I checked the class.smtp.php file but couldn't see anything.

I'm using the latest version of CMSMS(1.6.6) and Form Builder (0.6b1)

Many thanks
Jo

Re: Form Builder form - new SMTP error

Posted: Tue Dec 01, 2009 4:39 pm
by Dr.CSS
I would look in system info page to see if your host made any changes as fopen is needed for module manager to work and some host will turn this off for security reasons...

Re: Form Builder form - new SMTP error

Posted: Wed Dec 02, 2009 5:03 pm
by jocando
Thanks.  I've had a look (under Site Admin) and I can't see any problems.

It says:
fsockopen: Connection ok!
fopen: Connection ok! 


I've got reseller hosting, so I'm hosting this myself and I've made no changes. 

I've just tried doing another contact form (based on a different template) and the same error message appears when I try to submit.

Any other thoughts?

Thanks
Jo

Re: Form Builder form - new SMTP error

Posted: Tue Feb 02, 2010 6:27 pm
by kendo451
Ever solved this?

Re: Form Builder form - new SMTP error

Posted: Tue Feb 02, 2010 8:40 pm
by jocando
It solved itself - after about a week the error went away.  I have no idea what happened or why.

Re: [SOLVED] Form Builder form - new SMTP error

Posted: Tue Feb 02, 2010 8:58 pm
by kendo451
That error is usually caused by rejection of the email address/password by the SMTP server.  It happened to me when I changed an email account and forgot to update the CMS Mailer settings.

Solution:

1. Verify that the username and password in your CMS Mailer actually works with the SMTP server.  You can test this with Outlook, Thunderbird, or your webmail client.

2. Once you're sure you have the right Username / PW, then go into CMS Mailer and set mailing method to SMTP and put the username and PW in at the bottom of the page.  Send yourself a test message.

3. You can always change the method to mail or sendmail, in which case it doesn't use SMTP at all.  But if you do that, the email may be blocked by SPF/SKIM spam protection for many recipients.