It getting error on server : Message: fsockopen(): unable to connect to ssl://smtp.googlemail.com:465 (Permission denied) Filename: libraries/Email.php
Message: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() i got this error did you help me about this?
Hi ali and Iman,it is so easy to fix this error just go to php.ini and change these values like that [mail function] ; For Win32 only. ; php.net/smtp SMTP = ssl://smtp.gmail.com ; php.net/smtp-port smtp_port = 465 ; For Win32 only. ; php.net/sendmail-from sendmail_from = YourMail@gmail.com
I think you need to change SMTP settings in your xampp or wamp in localhost you should get the latest Gmail SMTP setting from Google and set it to php.ini and think it will work good
Severity warning Message: fsockopen(): unable to connect to 465ssl://smtp.googlemail.com:465(Unable to find the socket transport "465ssl" - did you forget to enable it when you configured php?) Filename libraries/email.php Line number 2069