I’m trying to send an email by using the PHP email() function and setting up the Email Settings in the AMPPS admin control panel.
Email Settings: I use a SMTP server (Gmail account) and it is ok, a test email was sent.
In PHP, I tried this: “mail("xyz@gmail.com","My subject:test",”message”,"From: xyz@gmail.com")
An I’m encountering this failure: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
I desactivated the firewall, I tried to change the settings in the php.ini file, I tried to use the ini_set() function, etc… all without success.
A question: does it work to use Email settings + mail() in PHP on AMPPS ?