Documentation
¶
Index ¶
- func SendHTMLMail(to, subject string, msg types.Email, attachment []types.EmailAttachment) error
- func SendMailMailgun(to, subject, msgHtml, msgText string, attachment []types.EmailAttachment) error
- func SendMailRateLimited(to, subject string, msg types.Email, attachment []types.EmailAttachment) error
- func SendMailSMTP(to string, msg []byte) error
- func SendTextMail(to, subject, msg string, attachment []types.EmailAttachment) error
- func SendTextMailMailgun(to, subject, msg string, attachment []types.EmailAttachment) error
- func SendTextMailSMTP(to, subject, body string) error
- type MailTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendHTMLMail ¶
SendMail sends an email to the given address with the given message. It will use smtp if configured otherwise it will use gunmail if configured.
func SendMailMailgun ¶
func SendMailMailgun(to, subject, msgHtml, msgText string, attachment []types.EmailAttachment) error
SendMailMailgun sends an email to the given address with the given message, using mailgun.
func SendMailRateLimited ¶
func SendMailRateLimited(to, subject string, msg types.Email, attachment []types.EmailAttachment) error
SendMailRateLimited sends an email to a given address with the given message. It will return a ratelimit-error if the configured ratelimit is exceeded.
func SendMailSMTP ¶
SendMailSMTP sends an email to the given address with the given message, using smtp.
func SendTextMail ¶
func SendTextMail(to, subject, msg string, attachment []types.EmailAttachment) error
SendMail sends an email to the given address with the given message. It will use smtp if configured otherwise it will use gunmail if configured.
func SendTextMailMailgun ¶
func SendTextMailMailgun(to, subject, msg string, attachment []types.EmailAttachment) error
SendMailMailgun sends an email to the given address with the given message, using mailgun.
func SendTextMailSMTP ¶
SendMailSMTP sends an email to the given address with the given message, using smtp.