Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Localhost and emails



Threaded Mode | Print  

 Localhost and emails, Sending emails on localhost (3 Replies, Read 3480 times)
tomdringer
Group: Member
Post Group: Newbie
Posts: 4
Status:
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.
IP: --   

Localhost and emails
tidus
Group: Member
Post Group: Super Member
Posts: 1123
Status:
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
IP: --   

Localhost and emails
tomdringer
Group: Member
Post Group: Newbie
Posts: 4
Status:
Ok thanks for your reply.
IP: --   

Localhost and emails
tirumalg
Group: Member
Post Group: Newbie
Posts: 1
Status:
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
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 29, 2017, 3:46 pm.

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