Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
Hi,
I posted this in January:
Hi,
Just upgraded the home page of my site from CE3 -> CE4. Most seems to work correctly, but I'm having trouble with the Contact Form. Specifically, submitting a message results in the following error response:
fsockopen() [function.fsockopen]: unable to connect to ssl://auth.smtp.1and1.co.uk:587 (Connection timed out)|#0 [internal function]: ErrorHandler::handleError('ssl://auth.smtp...', 587, 110, 'Connection time...', 10) #1 /homepages/42/d20590601/htdocs/webroot/ttg-be/framework/lib/SMTP.php(125): fsockopen('ssl://auth.smtp...', 587, 10) #2 /homepages/42/d20590601/htdocs/webroot/ttg-be/framework/lib/PHPMailer.php(604): SMTP->Connect() #3 /homepages/42/d20590601/htdocs/webroot/ttg-be/framework/lib/PHPMailer.php(520): PHPMailer->SmtpConnect('Date: Fri, 9 Ja...', '--b1_26555f09e8...') #4 /homepages/42/d20590601/htdocs/webroot/ttg-be/framework/lib/PHPMailer.php(413): PHPMailer->SmtpSend() #5 /homepages/42/d20590601/htdocs/webroot/ttg-be/framework/helpers/EmailHelper.php(115): PHPMailer->Send() #6 /homepages/42/d20590601/htdocs/webroot/ttg-be/framework/helpers/EmailHelper.php(61): EmailHelper->sendEmailViaSMTP() #7 /homepages/42/d20590601/htdocs/webroot/ttg-be/admin/application/delegates/ContactDelegate.php(67): EmailHelper->send(Array, Array) #8 /homepages/42/d20590601/htdocs/webroot/contact.php(130): ContactDelegate->contact() #9 {main}|URL: /contact.php
'auth.smtp.1and1.co.uk' is the smtp server for my ISP, which works correctly from my mailer (Thunderbird), from a Wordpress Blog on the same host, and from a NAS on my home network. I've checked username and password (more than once!). I've also tried sending the form via my gmail account, with the appropriate credentials.
I've got ttg-be v2.0.2 installed (checked that), and I think (?) that everything is correctly configured (though, presumably, it's not or things would be working).
Not sure what to do next. Looking on the bright side, it should cut down on the spam I receive!
Rod Barbee made a couple of suggestions, which I followed up, but the problem persists. I've just updated my web server PHP version to 5.5 - wondered if that would resolve, but no change.
The website is at http://www.cusick.org.uk, and guest setup for ttg-be is set up.
Help, please!!!
Geoff
Geoff Cusick
Amazed and Confused
https://www.cusick.org.uk
Offline
Hi Geoff, your host won't allow the SMTP connection to be made from the web server. Have you tried using the 'mail' option instead of 'smtp'?
Offline
Thanks Ben. I'll look into it with the hosting company - both the website and the mail account are with the same host.
Geoff Cusick
Amazed and Confused
https://www.cusick.org.uk
Offline
Thanks again Ben. Just tried the 'mail' option in ttg-be config, and that resolved the problem.
Cheers
Geoff
Geoff Cusick
Amazed and Confused
https://www.cusick.org.uk
Offline
Hi Geoff, 'mail' should work well for you then. It's worth making sure that your Vendor email address matches an address you have configured with 1and1. When your host is aware of the email address on the domain, then it's more likely to set the 'From' address correctly when sending with 'mail'. This in turn helps emails get through spam filters. For example, if 1and1 knows that 'geoff@yoursite.com' is a valid address then the emails should be marked as from 'geoff@yoursite.com', otherwise they might be marked as something like user7890@server1.1and1host.net (completely made up).
Offline
Pages: 1