Documentation
¶
Index ¶
- type Config
- type Mandrill
- func (m *Mandrill) AddAttachment(attachment *mandrill.Attachment) Mandrills
- func (m *Mandrill) AddRecipient(recipientEmail, recipientName string) Mandrills
- func (m *Mandrill) Send() error
- func (m *Mandrill) SetEmailFrom(emailFrom string) Mandrills
- func (m *Mandrill) SetFromName(fromName string) Mandrills
- func (m *Mandrill) SetGlobalMergeVars(data map[string]interface{}) Mandrills
- func (m *Mandrill) SetHTMLContent(subject, htmlContent string) Mandrills
- func (m *Mandrill) SetTemplate(templateName string, templateContent map[string]string) Mandrills
- func (m *Mandrill) SetTextContent(subject, textContent string) Mandrills
- type Mandrills
- type SMTP
- func (s *SMTP) AddRecipient(recipient string) *SMTP
- func (s *SMTP) Send(recipient ...string) error
- func (s *SMTP) SetContent(subject, message string) *SMTP
- func (s *SMTP) SetHTMLTemplate(fs embed.FS, tplFile, subject string, args interface{}) *SMTP
- func (s *SMTP) SetSingleRecipient(recipient string) *SMTP
- type SMTPConfig
- type SMTPs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mandrill ¶ added in v0.2.11
type Mandrill struct {
*Config
// contains filtered or unexported fields
}
func (*Mandrill) AddAttachment ¶ added in v0.2.12
func (m *Mandrill) AddAttachment(attachment *mandrill.Attachment) Mandrills
func (*Mandrill) AddRecipient ¶ added in v0.2.11
func (*Mandrill) SetEmailFrom ¶ added in v0.5.20
func (*Mandrill) SetFromName ¶ added in v0.5.20
func (*Mandrill) SetGlobalMergeVars ¶ added in v0.2.13
func (*Mandrill) SetHTMLContent ¶ added in v0.2.11
func (*Mandrill) SetTemplate ¶ added in v0.2.13
func (*Mandrill) SetTextContent ¶ added in v0.2.11
type Mandrills ¶ added in v0.2.11
type Mandrills interface {
AddRecipient(recipientEmail, recipientName string) Mandrills
AddAttachment(attachment *mandrill.Attachment) Mandrills
SetHTMLContent(subject, htmlContent string) Mandrills
SetTextContent(subject, textContent string) Mandrills
SetGlobalMergeVars(data map[string]interface{}) Mandrills
SetTemplate(templateName string, templateContent map[string]string) Mandrills
SetEmailFrom(emailFrom string) Mandrills
SetFromName(fromName string) Mandrills
Send() error
}
func NewMandrill ¶ added in v0.2.11
type SMTP ¶
type SMTP struct {
SMTPConfig
// contains filtered or unexported fields
}
func NewSMTP ¶
func NewSMTP(cfg *SMTPConfig) *SMTP
func (*SMTP) AddRecipient ¶ added in v0.2.10
func (*SMTP) SetContent ¶
func (*SMTP) SetHTMLTemplate ¶ added in v1.1.10
func (*SMTP) SetSingleRecipient ¶ added in v1.6.4
type SMTPConfig ¶
type SMTPConfig struct {
Config
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.