example

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentData

type AttachmentData struct {
	EncodedAttachment string
	FileName          string
}

AttachmentData struct

type Email

type Email struct {
	To          EmailAddresses
	Cc          EmailAddresses
	Bcc         EmailAddresses
	From        EmailAddress
	Subject     string
	Body        string
	Attachments []AttachmentData
	InReplyTo   string // Message-id header of messaged being replied to
	References  []string
}

Email - information for the email to be sent

type EmailAddress

type EmailAddress struct {
	Name    string // display name
	Address string // email address
}

EmailAddress struct

type EmailAddresses

type EmailAddresses []EmailAddress

EmailAddresses - alias for []EmailAddress

func (EmailAddresses) Addresses

func (ea EmailAddresses) Addresses() []string

Addresses - returns a slice of just the address portion of EmailAddresses

func (EmailAddresses) ArrList

func (ea EmailAddresses) ArrList(includeName bool) string

ArrList - convert to comma-seperated list of email Addresses

Jump to

Keyboard shortcuts

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