Documentation
¶
Index ¶
Constants ¶
View Source
const ( BodyContentTypePlain string = "text/plain" BodyContentTypeHTML string = "text/html" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSSESConfig ¶
type BodyFromHTMLParams ¶
type BodyFromMJMLParams ¶
type Config ¶
type Config struct {
SMTP SMTPConfig
Template TemplateConfig
}
type Interface ¶
type Interface interface {
SendEmail(ctx context.Context, params SendEmailParams) error
GenerateBody() TemplateInterface
}
type SMTPConfig ¶
type SendEmailParams ¶
type TemplateConfig ¶
type TemplateConfig struct {
FileDirectory string
}
type TemplateInterface ¶
type TemplateInterface interface {
FromHTML(params BodyFromHTMLParams) (string, error)
FromMJML(ctx context.Context, params BodyFromMJMLParams) (string, error)
}
Click to show internal directories.
Click to hide internal directories.