Documentation
¶
Overview ¶
Package mail parses inbound MIME messages and sends outbound mail via SMTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct {
Filename string `json:"filename"`
ContentType string `json:"contentType"`
Size int `json:"size"`
}
Attachment is metadata for a non-inline message part.
type Parsed ¶
type Parsed struct {
MessageID string
From string
To string
Subject string
Text string
HTML string
Attachments []Attachment
ReceivedAt time.Time
Raw []byte
}
Parsed is the normalized result of reading a raw RFC822 message.
type SMTPSender ¶
type SMTPSender struct {
// contains filtered or unexported fields
}
SMTPSender relays through a configured SMTP server.
func (*SMTPSender) Send ¶
func (s *SMTPSender) Send(m Message) error
Click to show internal directories.
Click to hide internal directories.