mail

package
v0.0.0-...-d78814b Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotifyComment

func NotifyComment(c *comments.Comment)

NotifyComment sends notification emails about comments.

func ParseAddress

func ParseAddress(addr string) (*mail.Address, error)

ParseAddress parses an email address.

func SendEmail

func SendEmail(email Email)

SendEmail sends an email.

Types

type Email

type Email struct {
	To             string
	ReplyTo        string
	Admin          bool /* admin view of the email */
	Subject        string
	UnsubscribeURL string
	Data           map[string]interface{}

	Template string
}

Email configuration.

Jump to

Keyboard shortcuts

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