Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmailHandler ¶
func EmailHandler(p *pass.Pass, rw http.ResponseWriter, r *http.Request, emailcfg EmailConfig, postEmailTemplate *template.Template, emailTemplate *textTemplate.Template) bool
EmailHandler has will handle any url that fits the pattern /<UUIDv4>/email
func SendEmail ¶
func SendEmail(emailcfg EmailConfig, rcpt string, uuid string, siteURL string, emailTemplate *textTemplate.Template) (err error)
SendEmail sends the templated email to the rcpt
Types ¶
type EmailConfig ¶
EmailConfig contains the config required for SendEmail
func CreateEmailcfg ¶
func CreateEmailcfg(p *pass.Pass) EmailConfig
CreateEmailcfg Loads addon config, must be done at server startup since this will exit the server on parse error
Click to show internal directories.
Click to hide internal directories.