Documentation
¶
Index ¶
Constants ¶
View Source
const ( IdleTimeout = time.Second * 10 PoolWaitTimeout = time.Second * 5 MaxConns = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct {
Filename string
Header textproto.MIMEHeader
Content []byte
}
type Mail ¶
type Mail struct {
From string
To []string
Cc []string
Bcc []string
ContentType ContentType
Headers textproto.MIMEHeader
Subject string
Body []byte
Attachments []Attachment
}
func MailFromTemplate ¶
func (*Mail) AttachFile ¶
type SMTPClient ¶
type SMTPClient struct {
// contains filtered or unexported fields
}
func (*SMTPClient) Close ¶
func (c *SMTPClient) Close() error
func (*SMTPClient) Send ¶
func (c *SMTPClient) Send(mail Mail) error
Click to show internal directories.
Click to hide internal directories.