Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SendgridMailer ¶
type SendgridMailer struct { ApiKey string Endpoint string Host string MessageTypes map[papers.MessageType]string }
func NewSendgridMailer ¶
func NewSendgridMailer(apiKey string) *SendgridMailer
func (SendgridMailer) AddMessageType ¶
func (s SendgridMailer) AddMessageType(msgType papers.MessageType, templateID string)
func (SendgridMailer) SendMessage ¶
func (s SendgridMailer) SendMessage(ctx context.Context, p *papers.Papers, msg papers.Message) error
Send an e-mail
Click to show internal directories.
Click to hide internal directories.