mail

package
v0.0.0-...-76f7c0c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(smtpConfig config.SMTPConfig) error

func Send

func Send(message *Message) error

Types

type Attachment

type Attachment struct {
	Name string
	Data []byte
}

type Message

type Message struct {
	To         string
	Subject    string
	Body       string
	Attachment *Attachment
}

type Service

type Service struct {
	*gmail.Service
}

Jump to

Keyboard shortcuts

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