Documentation ¶
Index ¶
- func SendHtml(ctx op_context.Context, client EmailSender, to string, subject string, ...) error
- func SendHtmlAndText(ctx op_context.Context, client EmailSender, to string, subject string, ...) error
- func SendTemplate(ctx op_context.Context, client EmailSender, templatesPath string, ...) error
- func SendText(ctx op_context.Context, client EmailSender, to string, subject string, ...) error
- type EmailContent
- type EmailSender
- type TemplateVals
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendHtml ¶
func SendHtml(ctx op_context.Context, client EmailSender, to string, subject string, content string) error
func SendHtmlAndText ¶
func SendHtmlAndText(ctx op_context.Context, client EmailSender, to string, subject string, html string, text string) error
func SendTemplate ¶
func SendTemplate(ctx op_context.Context, client EmailSender, templatesPath string, templateName string, to string, vals TemplateVals, language ...string) error
func SendText ¶
func SendText(ctx op_context.Context, client EmailSender, to string, subject string, content string) error
Types ¶
type EmailContent ¶
type EmailSender ¶
type EmailSender interface {
Send(ctx op_context.Context, to string, subject string, content ...EmailContent) error
}
type TemplateVals ¶
Click to show internal directories.
Click to hide internal directories.