- This a php cli app that uses gmail api to send mails.
git clone https://github.com/jakhax/gmail-api-php.git
composer install
- If you do not have the credentials file, head over to the docs section
- On step 1 select
enable the gmail api
thendownload client configuration
- Save the file
credentials.json
in theconfig
dir, dont commit it.
./php-gmail list
./php-gmail-api simplegmail\
--sender=me@mail.com --to=you@mail.com\
--subject=Hello --body=Hello World!
- implement dependency injection using symfony service containers,symfony dependency injection.
- Add support for batch email.
- Add gmail service account support.
- Command for getting recipients and mail from a files(e.g csv file).