Hi,
I am getting "Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error) (code: -1, response: )]" while adding the mail IDs to my OSTicket Server.

Telnet for the smtp.gmail.com for 465 port is also working.

Previously it was working and mails were sending but suddenly from last week showing this error. Kindly help to fix the issue.

Attached screenshot here.


Hi,
Yes I have gone through that and configured the same. It was working fine till last week.

Suddenly alert and notices stopped from last week , while email fetching is happening still and tickets are creating. But SMTP only not working. While I tried reconfigure by giving the password again it shows the error attached.

@Kowshick

Try Port 587 and remove ssl:// from the hostname. If it gives you an error try Port 587 and put tls:// in front of smtp.gmail.com.

Cheers.

Hi,
It's working for me after the changes you suggested , thank You for your help.

Glad to hear it.

I'll mark this as resolved and close the thread. Please start a new thread if you have another question, comment, etc.

ntozier changed the title to [resolved] Getting error while trying adding new mail..
Write a Reply...