mailer

package
v0.9.97 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginAuth added in v0.6.9

func LoginAuth(username, password string) smtp.Auth

SMTP AUTH LOGIN Auth Handler

func NewContext added in v0.6.15

func NewContext()

func SendAsync

func SendAsync(msg *Message)

Types

type Message

type Message struct {
	Info string // Message information for log purpose.
	*gomail.Message
}

func NewMessage added in v0.6.15

func NewMessage(to []string, subject, body string) *Message

NewMessage creates new mail message object with default From header.

func NewMessageFrom added in v0.6.15

func NewMessageFrom(to []string, from, subject, htmlBody string) *Message

NewMessageFrom creates new mail message object with custom From header.

type Sender added in v0.6.15

type Sender struct {
}

func (*Sender) Send added in v0.6.15

func (s *Sender) Send(from string, to []string, msg io.WriterTo) error

Jump to

Keyboard shortcuts

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