Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyType ¶ added in v1.1.0
type BodyType int
BodyType is used to specify the format of the body.
type SendGrid ¶
type SendGrid struct {
// contains filtered or unexported fields
}
SendGrid struct holds necessary data to communicate with the SendGrid API.
func New ¶
New returns a new instance of a SendGrid notification service. You will need a SendGrid API key. See https://sendgrid.com/docs/for-developers/sending-email/api-getting-started/
func (*SendGrid) AddReceivers ¶
AddReceivers takes email addresses and adds them to the internal address list. The Send method will send a given message to all those addresses.
func (*SendGrid) BodyFormat ¶ added in v1.1.0
BodyFormat can be used to specify the format of the body. Default BodyType is HTML.
Click to show internal directories.
Click to hide internal directories.