Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToContext ¶
func ToContext(c Setter, worker EmailSender)
Types ¶
type EmailSender ¶
type EmailSender interface {
SendEmail(from, name string, to []string, subject, template string, params params.M) error
}
func FromContext ¶
func FromContext(c context.Context) EmailSender
type SmtpSender ¶
type SmtpSender struct {
// contains filtered or unexported fields
}
func NewSmtpSender ¶
func NewSmtpSender(server string, port int, user, password string) *SmtpSender
Click to show internal directories.
Click to hide internal directories.