notify

package
v0.0.0-...-534388a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(
	Oauth2ConfigClientID string,
	Oauth2ConfigClientSecret string,
	Oauth2TokenAccessToken string,
	Oauth2TokenRefreshToken string,
	To string,
	SubjectPrefix string,
)

Configure initializes settings for this package

func OAuthGmailService

func OAuthGmailService() (*gmail.Service, error)

OAuthGmailService creates a gmail service client https://medium.com/wesionary-team/sending-emails-with-go-golang-using-smtp-gmail-and-oauth2-185ee12ab306 TODO: Put all the settings in a config file

func SendEmail

func SendEmail(subject string, body string) error

SendEmail will send an email to me

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL