Xampp and Gmail SMTP

Here is a PHP mail library that works with Gmail SMTP and Xampp:

https://github.com/PHPMailer/PHPMailer

Download all code as a zip and unzip somewhre in htdocs.

https://github.com/PHPMailer/PHPMailer/archive/master.zip

In the unzipped folder go to

../examples/

find the file gmail.phps and copy the file
paste it and rename to gmail.php

Edit the file and add your user details. For the sake of the test let the recipient be yourself.
If you fire off the file and get a mail then it works.

And it worked for me in Xampp.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Enable Notifications OK No thanks

We use cookies - more information

Multimusen.dk will set a few cookies from Doubleclick, Google and the Social Media plugins they ay set some cookies. Some of my pages use APIs - such as YouTube, LinkedIn, Google Fonts, Google Maps, Mapbox, Spotify, Jetpack, Twitter, Facebook &c.. Such plugins may set the odd cookie.

Close