mail

package
v0.0.0-...-de73072 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2019 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dialer

func Dialer() (dialer *gomail.Dialer)

Dialer return a new dialer

func SendMail

func SendMail(To string, Subject string, Content string, sender gomail.SendCloser, Attachments ...Attachment) (err error)

SendMail sending an email with attchment, it just a little shorter but its calling is not graceful enough 注意区别,sender 在 attachment之前

func SendMailWithAttch

func SendMailWithAttch(To string, Subject string, Content string, Attachments []Attachment, sender gomail.SendCloser) (err error)

SendMailWithAttch sending an email with attchment which tell you can add attch with it

func Sender

func Sender() (sender gomail.SendCloser, err error)

Sender return a new sender

Types

type Attachment

type Attachment struct {
	Name    string
	Content []byte
}

Attachment Define the Attachment

Jump to

Keyboard shortcuts

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