Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SendgridRequestFactory *sendgridRequestFactory
Functions ¶
func InitSendgridRequestFactory ¶
func InitSendgridRequestFactory(apiKey string)
func SendHTMLEmail ¶
func SendHTMLEmail(logger logging.Logger, cfg *SendGridConfig, subject, htmlBody string, recipient *nativeMail.Address, substitutions map[string]string) error
Types ¶
type AddressesProvider ¶
func NewSimpleAddressesProvider ¶
func NewSimpleAddressesProvider(addresses ...*mail.Address) AddressesProvider
type SendGridConfig ¶
func NewSendGridConfig ¶
func NewSendGridConfig(fromName, fromEmail, templateID string) (cfg *SendGridConfig)
Click to show internal directories.
Click to hide internal directories.