Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailSender ¶
type EmailSender interface {
SendMail(
subject string,
content string,
to []string,
cc []string,
bcc []string,
attachFiles []string,
) error
}
func NewSESSender ¶
func NewSESSender(region string, senderEmail string) EmailSender
NewSESSender initializes a new SESSender with optional credentials. If AccessKeyID and SecretKey are empty, the AWS SDK will use the default credentials chain.
func NewSendGridSender ¶
func NewSendGridSender(apiKey string, appName string, appEmail string) EmailSender
NewSendGridSender initializes a new SendGridSender.
type SendGridSender ¶
SendGridSender implements the EmailSender interface for SendGrid.
Click to show internal directories.
Click to hide internal directories.