Softaculous


Topic : Sending an email via PHP


Posted By: OliverWise on February 7, 2020, 10:03 pm
Hello,

I have installed AMPPS on Windows10.

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 ?

Thanks,

Olivier.

Posted By: tonydmz on July 25, 2020, 8:06 pm | Post: 1
Me too.
Any luck?

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.