I can´t setup smtp gmail in Osticket because I always get an error message. I´ve researched on google and on this forum, but I couldn´t find a solution.
OS: Windows Server 2012 R2 Standard
osTicket Version: v1.10.1 (9ae093d) — Up to date
Web Server Software: Apache/2.4.29 (Win32) OpenSSL/1.0.2l PHP/5.6.32
MySQL Version: 10.1.28
PHP Version: 5.6.32
These are four SMTP settings that I´ve tried with their error messages:
1-
Status: Enable
Hostname: smtp.gmail.com
Port Number: 587
Authentication Required: Yes
Header Spoofing: Allow for this email
Error: authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)]
2-
Status: Enable
Hostname: smtp.gmail.com
Port Number: 465
Authentication Required: Yes
Header Spoofing: Allow for this email
Error: Failed to connect to smtp.gmail.com:465 [SMTP: Invalid response code received from server (code: -1, response: )]
3-
Status: Enable
Hostname: ssl://smtp.gmail.com
Port Number: 587
Authentication Required: Yes
Header Spoofing: Allow for this email
Error: Failed to connect to ssl://smtp.gmail.com:587 [SMTP: Failed to connect socket: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:587 (Unknown error) (code: -1, response: )]
4-
Status: Enable
Hostname: ssl://smtp.gmail.com
Port Number: 465
Authentication Required: Yes
Header Spoofing: Allow for this email
Error: 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: )]
Does somebody has any idea about what I could do?
Thank you!