pm

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Name        string `json:"Name"`
	Content     []byte `json:"Content"`
	ContentType string `json:"ContentType"`
}

Attachment is an email attachment (optional).

type Email

type Email struct {
	From          string       `json:"From"`
	To            string       `json:"To"`
	ReplyTo       string       `json:"ReplyTo"` /* optional */
	Subject       string       `json:"Subject"`
	Text          string       `json:"TextBody"`
	HTML          string       `json:"HtmlBody"`
	MessageStream string       `json:"MessageStream"` /* default: "outbound" */
	Attachments   []Attachment `json:"Attachments,omitempty"`
}

Email is a Postmark email message.

func (Email) Send

func (e Email) Send() error

Send will connect to Postmark's server and send the email message.

Jump to

Keyboard shortcuts

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