gmail

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIME_TXT  = "MIME-version: 1.0;\nContent-Type: text/plain; charset=\"UTF-8\";\n\n"
	MIME_HTML = "MIME-version: 1.0;\nContent-Type: text/html; charset=\"UTF-8\";\n\n"
)

Variables

This section is empty.

Functions

func ComposeScope

func ComposeScope() string

func ReadOnlyScope

func ReadOnlyScope() string

func SendScope

func SendScope() string

Types

type GmailService

type GmailService struct {
	// contains filtered or unexported fields
}

func NewGmailService

func NewGmailService(token *oauth2.Token, config *oauth2.Config) (*GmailService, error)

func (*GmailService) SendHtmlMessage

func (gs *GmailService) SendHtmlMessage(to string, subject string, body string) (bool, error)

func (*GmailService) SendTextMessage

func (gs *GmailService) SendTextMessage(to string, subject string, body string) (bool, error)

Jump to

Keyboard shortcuts

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