Welcome Guest. Please Login or Register  


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



Threaded Mode | Print  

 Sending an email via PHP, Does it work to use Email settings + mail() in PHP on AMPPS ? (1 Replies, Read 4400 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: --   

Sending an email via PHP
tonydmz
Group: Member
Post Group: Newbie
Posts: 1
Status:
Me too.
Any luck?
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 19, 2024, 12:38 am.

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