sendmail

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(reply mail.Address, message string) (*string, error)

Types

type ENV

type ENV struct {
	MailSubject  string `env:"MAIL_SUBJECT" envDefault:"Test email"`
	SesRegion    string `env:"SES_REGION" envDefault:"us-west-1"`
	IsHtml       bool   `env:"IS_HTML" envDefault:true`
	MailFrom     string `env:"MAIL_FROM"`
	CcAddresses  string `env:"CC_ADDRESSES"`
	BccAddresses string `env:"BCC_ADDRESSES"`
	ToAddresses  string `env:"TO_ADDRESSES"`
	SmtpUser     string `env:"SMTP_USER"`
	SmtpPassword string `env:"SMTP_PASSWORD"`
	SmtpHost     string `env:"SMTP_HOST"`
	SmtpPort     int    `env:"SMTP_PORT" envDefault:587`
}

type SendMail

type SendMail struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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