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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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