sendmail

package
v0.0.0-...-3118640 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidBodyType       = errors.New("invalid body type")
	ErrMultipleFromAddresses = errors.New("multiple from addresses")
)

Functions

This section is empty.

Types

type Json

type Json struct {
	From     string `json:"from"`
	ReplyTo  string `json:"reply_to"`
	To       string `json:"to"`
	Cc       string `json:"cc"`
	Bcc      string `json:"bcc"`
	Subject  string `json:"subject"`
	BodyType string `json:"body_type"`
	Body     string `json:"Body"`
}

func (Json) PrepareMail

func (s Json) PrepareMail(now time.Time) (*Mail, error)

type Mail

type Mail struct {
	From *mail.Address
	Body []byte
}

type SendMail

type SendMail struct {
	SendMailCommand string `json:"send_mail_command"`
}

func (*SendMail) Send

func (s *SendMail) Send(mail *Mail) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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