Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Send = send
Functions ¶
func LoginAuth ¶
LoginAuth SMTP AUTH LOGIN Auth Handler
Types ¶
type Message ¶
type Message struct {
Info string // Message information for log purpose.
FromAddress string
FromDisplayName string
To string // Use only one recipient to prevent leaking of addresses
ReplyTo string
Subject string
Date time.Time
Body string
Headers map[string][]string
}
Message mail body and log info
func NewMessage ¶
NewMessage creates new mail message object with default From header.
func NewMessageFrom ¶
NewMessageFrom creates new mail message object with custom From header.
func (*Message) SetHeader ¶
SetHeader adds additional headers to a message
Source Files
¶
- dummy.go
- message.go
- sender.go
- sendmail.go
- smtp.go
- smtp_auth.go
Click to show internal directories.
Click to hide internal directories.