email

package
v0.0.0-...-2951e66 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmailNotifier

func NewEmailNotifier(smtp, user, pass, from string, to string) (messenger.Notifier, error)

Types

type MailMessage

type MailMessage struct {
	To          []string
	CC          []string
	BCC         []string
	Subject     string
	Body        string
	Attachments map[string][]byte
}

func NewMailMessage

func NewMailMessage(to []string, cc []string, bcc []string, subject string, body string, attachments map[string][]byte) (*MailMessage, error)

func (*MailMessage) MarshalBytes

func (mm *MailMessage) MarshalBytes() []byte

Jump to

Keyboard shortcuts

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