Skip to content

omarghader/emailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send an email using Go Using OAUTH2

GMAIL API

Before using this program, you should get an access token and a refresh token from Google API. Please refer to this document for more details : https://developers.google.com/identity/protocols/oauth2

Required Environment Variables

Set these env vars before running the program:

GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
GOOGLE_REFRESH_TOKEN=""
GOOGLE_ACCESS_TOKEN=""

Send an email

go run main.go -to=recipient_email_address@domain.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published