Documentation
¶
Index ¶
Constants ¶
const SequenceKey ctxKey = "sequence"
SequenceKey is the context key runSend() uses to pass each broker's position in the current batch through to a Sender, so implementations (e.g. the SMTP sender) can fold it into a generated message ID.
Variables ¶
This section is empty.
Functions ¶
func ValidateEmail ¶
ValidateEmail checks for injection characters and RFC 5322 compliance
Types ¶
type SMTPSender ¶
type SMTPSender struct {
// contains filtered or unexported fields
}
func NewSMTPSender ¶
func NewSMTPSender(cfg config.SMTPConfig, from string) *SMTPSender
func (*SMTPSender) Name ¶
func (s *SMTPSender) Name() string