Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailer ¶
func (*Mailer) SendMail ¶
SendMail takes a content writen in Markdown to send it to the given user. It uses Markdown to create a HTML version of the message and leave the Markdown format in the text version. To perform sending, it relies on the SendMethod global variable.
type SMTPMailer ¶
SMTPSendmail uses a SMTP server to send message
func NewSMTPMailer ¶
func NewSMTPMailer(host string, port uint, username, password string) *SMTPMailer
func (*SMTPMailer) PrepareAndSend ¶
func (t *SMTPMailer) PrepareAndSend(m ...*gomail.Message) (err error)
Send sends an e-mail to the given recipients using configured SMTP host.
func (*SMTPMailer) WithTLSNoVerify ¶
func (t *SMTPMailer) WithTLSNoVerify()
Source Files
¶
- mailer.go
- sendmail.go
- smtp.go
- templates.go
Click to show internal directories.
Click to hide internal directories.