Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SMTPAuthCredentials ¶
type SMTPClient ¶
type SMTPClient struct { Host string Port string Credentials SMTPAuthCredentials }
func NewSMTPClient ¶
func NewSMTPClient(host, port, sender, password string) (SMTPClient, error)
Construct a new SMTP client
func (SMTPClient) SendMail ¶
func (client SMTPClient) SendMail(mail models.Mail) (models.SuccessMessage, error)
Sends a mail using the SMTP protocol
Click to show internal directories.
Click to hide internal directories.