- In this project I'm showing you how you can send a mail using gmail SMTP and PHP Mailer library.
- I've used here live hosting server for testing.
- You can use this from your local server also.
Set SMTP in library.php :
error_reporting(0);
define("SMTP_HOST", "smtp.gmail.com");
define("SMTP_PORT", "465");
define("SMTP_UNAME", "sendperson@gmail.com");
define("SMTP_PWORD", "password");Index:
localhost/gmail_smtp/index.php