Categories
PHP XAMPP

Xampp and Gmail SMTP

How to use Xampp and Gmail SMTP authentiation.

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.

By Per Thykjaer Jensen

Per is the WordPress expert at Business Academy Aarhus. Senior Lecturer at the Multimedia Design Programme. His background is in the Arts: MA Literature History and BA Art History. Later he added a MA in IT, interaction and Multimedia. And he is a wicked Linux user.

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.