divyekapoor/simplegmail

This project sets up a simple class for emailing via GMail.

dev-master 2016-05-19 06:35 UTC

This package is not auto-updated.

Last update: 2024-05-01 15:47:49 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.