Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoReply = env.MustGet("EMAIL_NOREPLY")
NoReply is the default 'from' address
Functions ¶
func CanSendTo ¶ added in v0.10.0
CanSendTo returns true if Fider is allowed to send email to given address
func SetWhitelist ¶ added in v0.10.0
func SetWhitelist(s string)
SetWhitelist can be used to change email whitelist during rutime
Types ¶
type Message ¶ added in v0.10.0
Message represents what is sent by email
func RenderMessage ¶ added in v0.10.0
RenderMessage returns the HTML of an email based on template and params
type Params ¶ added in v0.10.0
type Params map[string]interface{}
Params used to replace variables on emails
type Recipient ¶ added in v0.10.0
Recipient contains details of who is receiving the email
func NewRecipient ¶ added in v0.10.0
NewRecipient creates a new Recipient
Click to show internal directories.
Click to hide internal directories.