Skip to content

harryngdev/smtp_gmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduce

  • 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.

Installation

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");

Path

Index:

localhost/gmail_smtp/index.php

Connect with me:

nvanha.com nvanha | Facebook nvanha | Instagram

About

Send email in PHP using Gmail SMTP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published