Documentation ¶
Overview ¶
Package mail implements a feature to email.
Index ¶
- func AddressToASCII(address string) (string, error)
- func AddressToUnicode(address string) (string, error)
- func ValidateAddress(address string) bool
- type Mail
- func (context Mail) Message(host string, recipients []string, id, nickname, to, subject, body string) error
- func (context Mail) SendConfirmation(host string, address mail.Address, id string, token string) error
- func (context Mail) SendCreation(host string, address mail.Address, id, token string) error
- func (context Mail) SendInvitations(host string, recipients []string, title string, start, end encoding.Time, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressToASCII ¶
AddressToASCII returns the ASCII representation of the given email address.
func AddressToUnicode ¶
AddressToUnicode returns the Unicode representation of the given email address.
func ValidateAddress ¶
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 (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 ¶
SendCreation sends an email ton continue the creation of a member.
Click to show internal directories.
Click to hide internal directories.