Documentation ¶
Index ¶
- type Attachment
- type IProvider
- type ISender
- type Mailjet
- func (s *Mailjet) GetDefaultFromEmail() string
- func (s *Mailjet) GetDefaultFromName() string
- func (s *Mailjet) GetTemplateHTMLCode(templateName string) (string, error)
- func (s *Mailjet) GetTemplateKeyFromConfig(configService config.IConfig, templateName string) (string, error)
- func (s *Mailjet) SendTemplate(message *Message) error
- func (s *Mailjet) SendTemplateWithAttachments(message *MessageAttachment) error
- type Mandrill
- func (s *Mandrill) GetDefaultFromEmail() string
- func (s *Mandrill) GetDefaultFromName() string
- func (s *Mandrill) GetTemplateHTMLCode(templateName string) (string, error)
- func (s *Mandrill) GetTemplateKeyFromConfig(configService config.IConfig, templateName string) (string, error)
- func (s *Mandrill) SendTemplate(message *Message) error
- func (s *Mandrill) SendTemplateWithAttachments(message *MessageAttachment) error
- type Message
- type MessageAttachment
- type NewSenderFunc
- type Sender
- func (s *Sender) GetTemplateHTMLCode(templateName string) (string, error)
- func (s *Sender) GetTemplateKeyFromConfig(templateName string) (string, error)
- func (s *Sender) SendTemplate(ormService *beeorm.Engine, message *Message) error
- func (s *Sender) SendTemplateWithAttachments(ormService *beeorm.Engine, message *MessageAttachment) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶ added in v1.1.4
type IProvider ¶ added in v1.2.77
type IProvider interface { GetTemplateKeyFromConfig(configService config.IConfig, templateName string) (string, error) SendTemplate(message *Message) error GetDefaultFromEmail() string GetDefaultFromName() string SendTemplateWithAttachments(message *MessageAttachment) error GetTemplateHTMLCode(templateName string) (string, error) }
type Mailjet ¶ added in v1.1.4
type Mailjet struct {
// contains filtered or unexported fields
}
func (*Mailjet) GetDefaultFromEmail ¶ added in v1.2.89
func (*Mailjet) GetDefaultFromName ¶ added in v1.2.89
func (*Mailjet) GetTemplateHTMLCode ¶ added in v1.1.4
func (*Mailjet) GetTemplateKeyFromConfig ¶ added in v1.2.23
func (*Mailjet) SendTemplate ¶ added in v1.1.4
func (*Mailjet) SendTemplateWithAttachments ¶ added in v1.1.4
func (s *Mailjet) SendTemplateWithAttachments(message *MessageAttachment) error
type Mandrill ¶
type Mandrill struct {
// contains filtered or unexported fields
}
func (*Mandrill) GetDefaultFromEmail ¶ added in v1.2.89
func (*Mandrill) GetDefaultFromName ¶ added in v1.2.89
func (*Mandrill) GetTemplateHTMLCode ¶ added in v0.8.69
func (*Mandrill) GetTemplateKeyFromConfig ¶ added in v1.2.23
func (*Mandrill) SendTemplate ¶
func (*Mandrill) SendTemplateWithAttachments ¶
func (s *Mandrill) SendTemplateWithAttachments(message *MessageAttachment) error
type MessageAttachment ¶
type MessageAttachment struct { Message Attachments []Attachment }
type NewSenderFunc ¶ added in v1.1.4
type Sender ¶
type Sender struct { ConfigService config.IConfig ClockService clock.IClock ErrorLoggerService errorlogger.ErrorLogger Provider IProvider }
func NewSender ¶ added in v1.3.105
func NewSender( ormConfig beeorm.ValidatedRegistry, configService config.IConfig, clockService clock.IClock, errorLogger errorlogger.ErrorLogger, newFunc NewSenderFunc, ) (*Sender, error)
func (*Sender) GetTemplateHTMLCode ¶ added in v0.8.69
func (*Sender) GetTemplateKeyFromConfig ¶ added in v1.2.23
func (*Sender) SendTemplate ¶
func (*Sender) SendTemplateWithAttachments ¶
func (s *Sender) SendTemplateWithAttachments(ormService *beeorm.Engine, message *MessageAttachment) error
Click to show internal directories.
Click to hide internal directories.