email

package
v0.0.0-...-788dbb9 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailSender

type EmailSender interface {
	SendEmail(from string, to string, body string) error
}

EmailSender sends emails.

type SMTPEmail

type SMTPEmail struct {
	Config config.SMTPConfig
}

SMTPEmail implements Email over SMTP.

func (SMTPEmail) GetURL

func (email SMTPEmail) GetURL() string

GetURL will get the SMTP URL.

func (SMTPEmail) SendEmail

func (email SMTPEmail) SendEmail(from string, to []string, body []byte) error

SendEmail sends emails.

Jump to

Keyboard shortcuts

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