Contact form test email with xampp

16,425

Solution 1

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.

Solution 2

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.

Share:
16,425
Mariangela Vidotto
Author by

Mariangela Vidotto

Updated on June 14, 2022

Comments

  • Mariangela Vidotto
    Mariangela Vidotto almost 2 years

    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?