divyekapoor / simplegmail
This project sets up a simple class for emailing via GMail.
dev-master
2016-05-19 06:35 UTC
Requires
- league/oauth2-google: ^1.0
- phpmailer/phpmailer: ^5.2
This package is not auto-updated.
Last update: 2025-04-02 20:01:48 UTC
README
A class to email via Gmail using PHP.
$simpleGmail = new SimpleGmail("Sender Name", "john.doe@gmail.com", "john.doe.password"); $simpleGmail->send("Receiver Name", "receiver_email@example.com", "Email Subject", "Email Body"); $simpleGmail->send("Divye Kapoor", "divye@example.com", "Email Subject", "Email Body");
Runtime Dependencies: PHP Curl (usually widely available on most web servers).
How to Use
composer require divyekapoor/simplegmail
The package is available on packagist and can be used via composer. Installation instructions for composer are here.
License
This code has been released under the MIT License to do as you please. Note that it depends on the LGPL licensed PHPMailer library.