SMTP gmail help |
[eluser]blorriman[/eluser]
I apologize if I missed a thread in the forum, but I read through some of them and didn't find the answer I was looking for. On my local server (localhost), my config/email.php is as follows, and it works great: Code: $config['mailtype'] = 'html'; But when I upload that to my host server I get the following error : Quote:Message: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Permission denied) Any explanation/help would be greatly appreciated.
[eluser]pickupman[/eluser]
Sound like your host maybe blocking that port. Open a ticket or a chat with them. Googling shows then need to have openssl enabled for php. You could check your config with a phpinfo();
[eluser]kbauman[/eluser]
Here was my solution to using gmail. I had everything correct, but it wouldn't work until I added the following: Code: $config['smtp_timeout'] = 30; I don't know which of those things made it work...I'm just happy it finally works. |
Welcome Guest, Not a member yet? Register Sign In |