- Edited
Howdy ya'll, I'm having some issues with our sending email config.
osTicket Version 1.16 in Windows IIS
PHP Version 8.1.2
The system logs yield:
Unable to email via php mail function: myemail@mygoogledomain.gov mail() returned failure.
When I try to configure "sending email via SMTP" settings, When I hit save I get the failure:
authentication failure [SMTP: STARTTLS failed (code 220, responseL 2.0.0 Ready to start TLS)
The settings I've configured are as follows:
Status: Enable
Hostname: smtp.gmail.com (I've also tried ssl://smtp.gmail.com and tls://smtp.gmail.com)
Port; 587
Auth req: yes
Header Spoofing: Allow (I've also tried unticking this box)
Might be worth saying that our IMAP fetching settings using the same credentials work just fine, so it's def not a credentials issue.
(SMALL EDIT FOR CLARITY- we also have less secure apps enabled for this address in our Gsuite console)
Operating System: Windows server 2019
I've configured both the proxy and the firewall to allow through any blocked connections that it showed when I ran wireshark. At this point I'm a little lost and I'd super appeciate anyone that has any ideas. End goal is to have a ticket system that can send an email- however that may happen
Maybe I'm missing something silly but I appreciate ya'lls help