email

package
v0.0.0-...-7c3836c Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailInterface

type EmailInterface interface {
	AddAttachUrl(key, val string) EmailInterface
	AddInlineUrl(key, val string) EmailInterface
	SetTitle(title string) EmailInterface
	SetContent(content string) EmailInterface
	SetContentType(contentType string) EmailInterface
	AddEmailAddress(mail []string) EmailInterface
	AddCcEmailAddress(mail []string) EmailInterface
	AddBccEmailAddress(mail []string) EmailInterface
	SetHttpClient(client *http.Client) EmailInterface
	AddHeader(key, val string) EmailInterface
	AppointmentTime(t time.Time) EmailInterface
	Send() (err error)
}

func NewEmail

func NewEmail(cf *config.Config) EmailInterface

func NewEmailSmtp

func NewEmailSmtp(conf *MailSmtpConf) EmailInterface

type MailSmtpConf

type MailSmtpConf struct {
	User, Password, Host string
}

Jump to

Keyboard shortcuts

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