Softaculous


Topic : Localhost and emails


Posted By: tomdringer on April 21, 2012, 7:35 am
Hi,

I am using AMPPS on my localhost on a Mac (Lion). I want to use AMPPS to send email, whilst testing locally. I have some PHP scripts installed and when testing user sign-up / registration the user needs to complete the registration by clicking on a link in their email.
The user never receives these emails as i don't have an email server set up. Is this just a case of installing one of the mail scripts and changing the smtp settings in my php.ini?

Thanks.

Posted By: tidus on April 21, 2012, 7:56 am | Post: 1
Hi,

You will have to Setup your own mail server. AMPPS doesn't provide any yet.

-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Posted By: tomdringer on April 21, 2012, 8:01 am | Post: 2
Ok thanks for your reply.

Posted By: tirumalg on April 21, 2017, 7:25 am | Post: 3
Hi Tidus,

I have installed AMPPS in my laptop (I use WINDOW 10 64 bit version) to learn web development. I was trying to send a mail to user for a contact form.



Now I am getting below error:

( ! ) Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files (x86)\Ampps\www\6-php\Sending mail using PHP 7.10.php on line 11

I have made below changes to php.ini file in both php and apache folders: but the scripts is not taking GMAIL credentials:

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.gmail.com
; http://php.net/smtp-port
smtp_port = 465
username = myname.lastname@gmail.com
password=mypassword
sendmail_from =myname.lastname@gmail.com

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.