Documentation ¶
Index ¶
- type Service
- func (s Service) Notify(subject, body string) error
- func (s Service) NotifyWithHeaders(subject, body string, headers map[string][]string) error
- func (s Service) SendEmail(from string, to []string, subject string, body string) error
- func (s Service) SendEmailWithHeaders(from string, to []string, subject string, body string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { // SMTP server host. SMTPHost string // SMTP server port. SMTPPort int // Do not verify SMTP hostname over encrypted connection. SMTPSkipVerify bool // SMTP identity. SMTPIdentity string // Username for SMTP server authentication. SMTPUsername string // Password for SMTP server authentication. SMTPPassword string // Adressess fot Notify method. NotifyAddresses []string // From address for Notify method. DefaultFrom string // Subject prefix for Notify method. It is not space separated from subject value. SubjectPrefix string }
Service provides functionality to send emails over SMTP server.
func (Service) NotifyWithHeaders ¶
NotifyWithHeaders sends an email message to Service.NotifyAddresses with additional headers.
Click to show internal directories.
Click to hide internal directories.