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
[SOLVED] Form Builder form - new SMTP error
[SOLVED] Form Builder form - new SMTP error
Last edited by jocando on Tue Feb 02, 2010 8:41 pm, edited 1 time in total.
Re: Form Builder form - new SMTP error
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
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
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
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
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.
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.