mail

package
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package mail implements a feature to email.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressToASCII

func AddressToASCII(address string) (string, error)

AddressToASCII returns the ASCII representation of the given email address.

func AddressToUnicode

func AddressToUnicode(address string) (string, error)

AddressToUnicode returns the Unicode representation of the given email address.

func ValidateAddress

func ValidateAddress(address string) bool

ValidateAddress returns a boolean telling whether the given email address is valid or not.

Types

type Mail

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

Mail is a structure to hold the context to email. Initialize with mail.New.

func New

func New(share string) (Mail, error)

New returns a new mail.Mail.

func (Mail) Message

func (context Mail) Message(host string, recipients []string, id, nickname, to, subject, body string) error

Message sends message.

func (Mail) SendConfirmation

func (context Mail) SendConfirmation(host string, address mail.Address, id string, token string) error

SendConfirmation sends an email to confirm the email address.

func (Mail) SendCreation

func (context Mail) SendCreation(host string, address mail.Address, id, token string) error

SendCreation sends an email ton continue the creation of a member.

func (Mail) SendInvitations

func (context Mail) SendInvitations(host string, recipients []string, title string, start, end encoding.Time, place, inviteds string, due encoding.Time, details string) error

SendInvitations sends invitations.

Jump to

Keyboard shortcuts

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