sendmail

package
v0.0.0-...-8dc1d63 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTP

type SMTP struct {
	Host       string `json:"host"`
	Port       int    `json:"port"`
	Password   string `json:"password"`
	Username   string `json:"username"`
	From       string `json:"from"`
	SkipVerify bool   `json:"skip_verify"`
}

SMTP is the set of SMTP credentials from the environment variables

func (SMTP) Decrypted

func (f SMTP) Decrypted(passphrase *validate.Passphrase) (SMTP, error)

Decrypted returns a decrypted object.

func (SMTP) Encrypted

func (f SMTP) Encrypted(passphrase *validate.Passphrase) (SMTP, error)

Encrypted returns an encrypted object.

func (SMTP) SendMail

func (f SMTP) SendMail(toAddresses []string, emailSubject, emailBody string,
	skipVerify bool, attachments ...string) error

SendMail will send an email.

Jump to

Keyboard shortcuts

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