Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatMail ¶
FormatMail prepare SMTP message
Types ¶
type Base64Encoder ¶
type Base64Encoder struct {
// contains filtered or unexported fields
}
Base64Encoder is a bease64 encoder reader
type Config ¶
type Config struct { // SMTPAddr is SMTP server address SMTPAddr string `json:"smtpAddr"` // AuthUsername is username for SMTP server AuthUsername string `json:"authUsername"` // AuthPassword is password for SMTP server AuthPassword string `json:"authPassword"` // AuthIdentity is identity for SMTP server AuthIdentity string `json:"authIdentity"` }
Config provide smtp mail configuration
type MailSender ¶
type MailSender struct {
// contains filtered or unexported fields
}
MailSender provide dial send stream api
func NewMailSender ¶
func NewMailSender(config Config) *MailSender
NewMailSender create new MailSender isntance
Click to show internal directories.
Click to hide internal directories.