Documentation
¶
Overview ¶
Library for configuring mail client and sending mail using HTTP templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CfgMail ¶
type CfgMail struct {
// contains filtered or unexported fields
}
A configuration struct for the mail server, populated from environment variables.
func (*CfgMail) Config ¶
This method configures mail server by reading values from the following environment variables: - SMTP_USER - smtp username; - SMTP_PASSWORD - smtp password; - SMTP_PORT - smtp server port; - SMTP_DOMAIN - smtp server domain; - SMTP_AUTH_TYPE - authentication type, must be string value of SMTPAuthType from github.com/wneessen/go-mail. Default is SMTPAuthAutoDiscover. - SMTP_TLS - smtp tls settings, must be string value of TLSPolicy from github.com/wneessen/go-mail. Default is TLSMandatory.
type MailIdentity ¶
Holds name displayed in email client and an email address
type MailSender ¶
type MailSender struct {
From MailIdentity
ReplyTo MailIdentity
}
Holds From and ReplyTo MailIdentity structs for the sender.