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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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