Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoginAuth ¶
LoginAuth uses for authorization in Exchange. Plain auth for Exchange server doesn't work since 2017.
func ValidateEmail ¶ added in v1.1.0
ValidateEmail email-address is valid
Types ¶
type AttachmentFile ¶
type InlineFile ¶ added in v1.1.0
type Mail ¶
type Mail struct {
MT MailType
From string
To []string
Subject string
Body string
Attachment []AttachmentFile
Inline []InlineFile // для inline-картинок
}
Mail is a struct for two types of email: plain text and html like.
type MailSender ¶
type MailSender struct {
// contains filtered or unexported fields
}
MailSender uses for send plain text emails.
func NewMailSender ¶
func NewMailSender(username, password, server string) *MailSender
NewMailSender is constructor for MailSender.
func (*MailSender) Send ¶
func (ms *MailSender) Send(mail Mail) error
Send is send simple plain text email to list recipients.
type QuickSender ¶
type QuickSender struct {
// contains filtered or unexported fields
}
func NewQuickSender ¶
func NewQuickSender(user, password, server, from string, to []string) *QuickSender
func (*QuickSender) Send ¶
func (qs *QuickSender) Send(subject, body string) error
Click to show internal directories.
Click to hide internal directories.