Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SMTPConfig ¶
SMTPConfig holds the configuration for the SMTP server
type Service ¶
type Service struct { SubjectPrefix string SMTPConfig SMTPConfig From string }
Service holds configuration for the SMTP server The sender address and an optional subject prefix
func NewMailService ¶
func NewMailService(subjectPrefix, from string, smtpConfig SMTPConfig) Service
NewMailService returns a new Service with specified config
func (Service) Send ¶
Send sends a mail over the configured SMTP server
Click to show internal directories.
Click to hide internal directories.