Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidRecipients = errors.New("Invalid recipients.")
Functions ¶
This section is empty.
Types ¶
type InboundMail ¶
type MailBase ¶
type MailBase struct { Subject string Recipient []MailRecipient Variables map[string]interface{} FromName string FromEmail string }
func (MailBase) SubjectText ¶
type MailRecipient ¶
type ModuleConfig ¶
type PostmarkMailer ¶
type PostmarkMailer struct { Logger *logging.Logger Client *postmark.Client // contains filtered or unexported fields }
func Postmark ¶
func Postmark(config *config.Config, logger *logging.Logger) (PostmarkMailer, error)
func (PostmarkMailer) IsSafe ¶
func (m PostmarkMailer) IsSafe(email string) bool
func (PostmarkMailer) Send ¶
func (module PostmarkMailer) Send(m Mail) string
func (PostmarkMailer) SendRaw ¶
func (module PostmarkMailer) SendRaw(raw Raw) string
type TestMailer ¶
type TestMailer struct {
Logger *logging.Logger
}
func (TestMailer) Send ¶
func (t TestMailer) Send(mail Mail) string
func (TestMailer) SendRaw ¶
func (t TestMailer) SendRaw(raw Raw) string
Click to show internal directories.
Click to hide internal directories.