email

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SMTPServer = "smtp.gmail.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {
	User     string
	Password string
}

func NewSender

func NewSender(Username, Password string) Sender

func (Sender) SendMail

func (sender Sender) SendMail(Dest []string, Subject, bodyMessage string)

func (Sender) WriteEmail

func (sender Sender) WriteEmail(dest []string, contentType, subject, bodyMessage string) string

func (*Sender) WriteHTMLEmail

func (sender *Sender) WriteHTMLEmail(dest []string, subject, bodyMessage string) string

func (*Sender) WritePlainEmail

func (sender *Sender) WritePlainEmail(dest []string, subject, bodyMessage string) string

Jump to

Keyboard shortcuts

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