Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Factory ¶ added in v0.8.0
Factory accepts configuration as a map[string]interface{} and instantiates the SMTP transport from it.
Example configuration:
cfg := map[string]interface{}{ "host": "smtp.mailtrap.io", "port": 587, "username": "abcdef123456", "password": "654321fedcba", }
Default host is "localhost". Default port is 587.
func TransportWithSender ¶ added in v0.8.0
func TransportWithSender(sender MailSender, host string, port int, username, password string) postdog.Transport
TransportWithSender returns an SMTP transport and accepts a custom implementation of the smtp.SendMail() function.
Types ¶
Click to show internal directories.
Click to hide internal directories.