Skip to content

A bash script to send single or bulk emails from bash using gmail's api.

Notifications You must be signed in to change notification settings

Fredsalianga/bashgmail

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BashGmail

This script will allow you to send emails from the terminal after you have set up a project on google cloud and have enabled gmail's api.

Once you provision the script with a refresh token, your client ID and client secret, it is ready to be used.

To send emails go through these steps:

  • Edit the email_body.txt file with the message you want to send.

email_body

  • Open the script and edit the subject of the email to your liking and choose the source and the destination email(s).

et_var

  • Then you can run the script.

Note: This script requires jq to be installed.

On Mac OS run brew install jq Mac_jq

On Ubuntu run code sudo apt install jq Ubuntu_jq

About

A bash script to send single or bulk emails from bash using gmail's api.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%