sendgrid

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 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 Email

type Email struct {
	// contains filtered or unexported fields
}

func (*Email) AddAttachment

func (m *Email) AddAttachment(filename, contentType string, content []byte)

func (*Email) AddBCC

func (m *Email) AddBCC(contact *cbmail.Contact)

func (*Email) AddCC

func (m *Email) AddCC(contact *cbmail.Contact)

func (*Email) AddTo

func (m *Email) AddTo(contact *cbmail.Contact)

func (*Email) Send

func (m *Email) Send() error

func (*Email) SetFrom

func (m *Email) SetFrom(contact *cbmail.Contact)

func (*Email) SetHeader

func (m *Email) SetHeader(key, value string)

func (*Email) SetHtmlBody

func (m *Email) SetHtmlBody(body string)

func (*Email) SetReplyTo

func (m *Email) SetReplyTo(contact *cbmail.Contact)

func (*Email) SetSubject

func (m *Email) SetSubject(subject string)

func (*Email) SetTextBody

func (m *Email) SetTextBody(body string)

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func New

func New(dependencies cbmail.Dependencies) (*Provider, error)

func (*Provider) New

func (p *Provider) New() cbmail.Email

Jump to

Keyboard shortcuts

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