Documentation
¶
Overview ¶
Package sender provides email dispatch implementations supporting SMTP and syz-dashboard APIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashapiConfig ¶
type DashapiConfig struct {
Client string
Addr string
From mail.Address
ContextPrefix string
SubjectPrefix string
}
DashapiConfig holds configuration for the Dashapi sender.
type Email ¶
type Email struct {
To []string
Cc []string
Subject string
InReplyTo string
Body []byte
BugID string
}
Email represents an email to be sent.
type SMTPConfig ¶
type Sender ¶
Sender defines the interface for sending emails.
func NewDashapiSender ¶
func NewDashapiSender(cfg DashapiConfig) (Sender, error)
NewDashapiSender creates a new Dashapi sender.
func NewSMTPSender ¶
func NewSMTPSender(cfg SMTPConfig) Sender
Click to show internal directories.
Click to hide internal directories.