Skip to content

PHP Examples for sending emails with Google's SMTP server and GMail API

License

Notifications You must be signed in to change notification settings

Mike-Banks/PHPEmailExamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHPEmailExamples

PHP Scripts that can be used to send encrypted emails with Google's SMTP Server using the PHPMailer Library and Composer. One script requires you to enter the email and password, the other uses XOAuth with GMail to send emails using a client ID, client secret and refresh token. These fields can be reteieved by using the GMail API. Both scripts are currently setup to accept an email, name and message from an HTML form with a POST request.

Scripts based off of the following:

https://github.com/PHPMailer/PHPMailer

https://github.com/PHPMailer/PHPMailer/wiki/Using-Gmail-with-XOAUTH2

About

PHP Examples for sending emails with Google's SMTP server and GMail API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages