This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
SMTP error
Started 15 years ago by matter | 3 posts |
-
I have config the smtp, I want use the gmail smtp for the machforms, but can not send email,now.
The error information:
Warning: fsockopen() [function.fsockopen]: unable to connect to tls://smtp.gmail.com:465 (Connection timed out) in /web/*****/public_html/forms/lib/class.smtp.php on line 122
Error sending email: SMTP Error: Could not connect to SMTP host.
Warning: fsockopen() [function.fsockopen]: unable to connect to tls://smtp.gmail.com:465 (Connection timed out) in /web/*****/public_html/forms/lib/class.smtp.php on line 122
Error sending email: SMTP Error: Could not connect to SMTP host.
Warning: Cannot modify header information - headers already sent by (output started at /web/*****/public_html/forms/lib/class.smtp.php:122) in /web/*****/public_html/forms/view.php on line 33I have been contact webhosting administrator. The webhosting administrator tell me about "Unfortunately port 465 is a restricted port on our system and we are not able to provide additional access to that. We are only able to open additional port access to port 1025 and above. "
Please help me how to send email for machformPosted 15 years ago # -
If your hosting company block any port lower than 1025, I'm afraid it won't be possible to connect to Gmail SMTP.
Your only option would be using the SMTP server provided by your host or not using SMTP at all. Have you tried turning off the SMTP option and send the form using the standard PHP mail function?
MachForm Founder
Posted 15 years ago # -
You are awesome.
I revised my code to use the same email as the sender but I got the error can't connect to SMTP server, I searched your forum; called GoDaddy and this crappy company blocks those two ports for shared hosting. InMotion Hosting doesn't block them, so I tested the same settings on another account that I have with InMotion and it worked. I disabled SSL in my config.php and I get the error that you mentioned; so it's indeed using the secure SMTP of Google.
Thanks a lot!
AlejandroPosted 13 years ago #
Reply
You must log in to post.