Documentation ¶
Index ¶
- type Config
- type Contact
- type Mail
- type Mailer
- func New(ctx context.Context, conf *Config) (m Mailer)
- func NewDirect(from string) Mailer
- func NewLogger() Mailer
- func NewSES(ctx context.Context, senderName, senderEmail string) Mailer
- func NewSMTP(host, port, username, email, password string) Mailer
- func NewSendGrid(senderName, senderEmail, api string) Mailer
- type Mock
- type SESConfig
- type SMTPConfig
- type SendGridConfig
- type ToList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Mailer string SMTP SMTPConfig SendGrid SendGridConfig SES SESConfig }
type Mailer ¶
type Mailer interface {
SendMail(ctx context.Context, toContacts []Contact, subject, plainContent, htmlContent string) error
}
func NewSendGrid ¶
type SMTPConfig ¶
type SendGridConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.