Mariangela Vidotto
Mariangela Vidotto

Reputation: 89

Contact form test email with xampp

I have a contact page that I made following this tutorial, when I click send I get a message telling me that the message has been sent, but I ain't receiving any email, I'm trying to test it locally with xampp v3.1.0, I read that I have to change the smtp in php.ini, but it didn't work either.

I want to test it with my localhost, what do I have to do?

Upvotes: 2

Views: 17262

Answers (2)

Rafael Barros
Rafael Barros

Reputation: 1053

As can be seen in the link "Mail" in XAMPP homepage (i.e. "localhost"), with the default configurations of the XAMPP, mails sent by the php mail function can be found in ".../xampp/mailoutput" folder (Windows). This is useful for test purposes.

Maybe your change to the "php.ini"s SMTP directive can be a problem to this approach.

Upvotes: 1

TheEnvironmentalist
TheEnvironmentalist

Reputation: 2852

You often don't have mail capability from your local server unless you specifically set it up that way. If you want to be able to send mail locally, refer to this link. Of course, there are other ways, such as installing hMailServer or some other smtp server, but you should have sendmail as part of your Xampp installation.

Upvotes: 0

Related Questions