Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSendGridRejected = errors.New("sendgrid rejected email")
Functions ¶
This section is empty.
Types ¶
type MemoryEmailClient ¶
type MemoryEmailClient struct {
}
func NewMemoryEmailClient ¶
func NewMemoryEmailClient() MemoryEmailClient
func (MemoryEmailClient) Send ¶
func (e MemoryEmailClient) Send(to, toEmail, subject, plainText, htmlText string) error
func (MemoryEmailClient) SendUsingTemplate ¶
func (e MemoryEmailClient) SendUsingTemplate(to, toEmail, subject, templateID string, templateData map[string]string) error
type SendGridEmailClient ¶
type SendGridEmailClient struct {
// contains filtered or unexported fields
}
func NewSendGridEmailClient ¶
func NewSendGridEmailClient(sgKey, sgFromName, sgFromEmail string) SendGridEmailClient
func (SendGridEmailClient) Send ¶
func (e SendGridEmailClient) Send(to, toEmail, subject, plainText, htmlText string) error
func (SendGridEmailClient) SendUsingTemplate ¶
func (e SendGridEmailClient) SendUsingTemplate(to, toEmail, subject, templateID string, templateData map[string]string) error
Click to show internal directories.
Click to hide internal directories.