Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Sending an email via PHP



Normal Mode | Print  

 Sending an email via PHP, Does it work to use Email settings + mail() in PHP on AMPPS ? (1 Replies, Read 4466 times)
OliverWise
Group: Member
Post Group: Newbie
Posts: 1
Status:
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.
IP: --   


Threads
 OliverWise   Sending an email via PHP, Does it work to use Email settings + mail() in PHP on AMPPS ? (1 Replies, Read 4466 times)
    |--  tonydmz   Me too. Any...   on July 25, 2020, 8:06 pm

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 18, 2024, 7:58 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.161