Documentation
¶
Overview ¶
Copyright 2020-2023 NGR Softlab
Copyright 2020-2023 NGR Softlab ¶
Copyright 2020-2024 NGR Softlab ¶
Copyright 2020-2024 NGR Softlab ¶
Copyright 2020-2024 NGR Softlab ¶
Copyright 2020-2023 NGR Softlab
Index ¶
Constants ¶
View Source
const ( HtmlContentType = "text/html" PlainTextContentType = "plain/text" MultipartMixedContentType = "multipart/mixed" VndSheetContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" )
Content types
View Source
const ( Utf8Charset = "utf-8" Base64Charset = "base64" )
Charsets
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttachData ¶
AttachData struct for attachments
type MessageParams ¶ added in v1.1.0
type Sender ¶
type Sender struct {
Auth smtp.Auth
Login string // user login
Password string // user password
ServerSMTP string // smtp server string (full)
ServerAddr string // smtp server addr string
Email string // user email address (from)
// contains filtered or unexported fields
}
Sender struct - sender for sending smtp packs
func NewTLSSender ¶ added in v1.2.4
func NewTLSSender(auth smtp.Auth, tlsCfg *tls.Config, email, hostAddress, fullServerAddress string) (*Sender, error)
NewTLSSender creating new *Sender obj
func (*Sender) NewMessage ¶
func (s *Sender) NewMessage(params *MessageParams) error
NewMessage creating new email message
func (*Sender) SendViaClient ¶ added in v1.2.4
SendViaClient send smtp pack (mail)
Click to show internal directories.
Click to hide internal directories.