Documentation
¶
Overview ¶
Package sendgrid implements emailprovider.Sender with SendGrid's v3 Mail Send API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(creds Credentials, config Config) (emailprovider.Sender, error)
New validates credentials and configuration and returns a SendGrid sender.
Types ¶
type Config ¶
type Config struct {
Sender emailprovider.Address
ReplyTo *emailprovider.Address
UnsubscribeGroupID int
Endpoint string
Client *http.Client
}
Config contains message-level and transport settings for a Sender.
type Credentials ¶
type Credentials struct {
APIKey string
}
Credentials contains the secret used to authenticate SendGrid requests.
Click to show internal directories.
Click to hide internal directories.