Skip to content

claudiocherubino/gmailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gmailer

A simple tool to send test emails using a Gmail or Google Apps account.

Usage

python gmailer.py USER PASSWORD RECIPIENT FILE [--subject SUBJECT]

Where:

  • USER is the email address of the Google account to be used to send emails (e.g. [email protected]).
  • PASSWORD is the password used to authenticate as the Google account.
  • RECIPIENT is the email address of the user to send the email to. It also supports a comma-separated list of values.
  • FILE is the location of the file containing the HTML body of the email to send.
  • SUBJECT is the optional email subject. If not provided, the default value will be "Gmailer test - DATETIME"

Examples

Login to Google as [email protected] (password abcde123) and send the HTML content from ./templates/goto_action.html to [email protected]:

python gmailer.py [email protected] abcde123 [email protected] ./templates/goto_action.html

Same as before, but with custom subject line:

python gmailer.py [email protected] abcde123 [email protected] ./templates/goto_action.html --subject "Sample email from Gmailer"

About

A simple tool to send test emails using a Gmail or Google Apps account

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages