Documentation
¶
Index ¶
- Constants
- func SmtpNTLMAuthenticate(c *smtp.Client, a *NTLMAuth) error
- type Attachment
- type Header
- func (h Header) Bytes() []byte
- func (h Header) MIMEHeader() textproto.MIMEHeader
- func (h Header) SetAddress(key string, value ...string) error
- func (h Header) SetDate(key string, value time.Time)
- func (h Header) SetString(key string, value string)
- func (h Header) SetValue(key, value string, params HeaderParams)
- type HeaderParams
- type Message
- type NTLMAuth
- type SmtpClient
Constants ¶
View Source
const TIME_FORMAT = time.RFC1123Z
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attachment ¶
type Header ¶
type Header textproto.MIMEHeader
func (Header) MIMEHeader ¶
func (h Header) MIMEHeader() textproto.MIMEHeader
func (Header) SetValue ¶
func (h Header) SetValue(key, value string, params HeaderParams)
type HeaderParams ¶
type HeaderParams map[string]interface{}
type Message ¶
type Message struct {
To string
Cc []string
Bcc []string
ReplyTo string
Subject string
Body string
BodyContentType string // TODO remove, because don't use in the library
Attachments map[string]*Attachment
// contains filtered or unexported fields
}
func NewMessage ¶
func NewMessage(smtpClient *SmtpClient, to string, subject string, body string) *Message
type SmtpClient ¶
type SmtpClient struct {
io.Closer
Host string
Port string
User string
Password string
Workstation string // NTLM authentication mechanism
From string
MaxLifetime time.Duration
TLSConfig *tls.Config
// contains filtered or unexported fields
}
func (*SmtpClient) Close ¶
func (c *SmtpClient) Close() error
func (*SmtpClient) Connection ¶
func (c *SmtpClient) Connection() (*smtp.Client, error)
Click to show internal directories.
Click to hide internal directories.