Documentation
¶
Index ¶
- func GetContentHashBase64(content []byte) string
- func GetHmac(content string, key []byte) string
- type Attachment
- type AzureACSEmailProvider
- type CommunicationError
- type Content
- type CustomHeader
- type Email
- type EmailAddress
- type EmailProvider
- type ErrorResponse
- type HttpEmailProvider
- type Recipients
- type SendgridEmailProvider
- type SendgridResponseBody
- type SmtpEmailProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContentHashBase64 ¶
Types ¶
type Attachment ¶
type AzureACSEmailProvider ¶
func NewAzureACSEmailProvider ¶
func NewAzureACSEmailProvider(accessKey string, endpoint string) *AzureACSEmailProvider
type CommunicationError ¶
CommunicationError contains the error code and message
type CustomHeader ¶
type Email ¶
type Email struct {
Recipients Recipients `json:"recipients"`
SenderAddress string `json:"senderAddress"`
Content Content `json:"content"`
Headers []CustomHeader `json:"headers"`
Tracking bool `json:"disableUserEngagementTracking"`
Importance string `json:"importance"`
ReplyTo []EmailAddress `json:"replyTo"`
Attachments []Attachment `json:"attachments"`
}
type EmailAddress ¶
type EmailProvider ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error CommunicationError `json:"error"`
}
type HttpEmailProvider ¶ added in v1.474.0
type HttpEmailProvider struct {
// contains filtered or unexported fields
}
func NewHttpEmailProvider ¶ added in v1.474.0
type Recipients ¶
type Recipients struct {
To []EmailAddress `json:"to"`
CC []EmailAddress `json:"cc"`
BCC []EmailAddress `json:"bcc"`
}
type SendgridEmailProvider ¶ added in v1.594.0
func NewSendgridEmailProvider ¶ added in v1.594.0
func NewSendgridEmailProvider(apiKey string, host string, endpoint string) *SendgridEmailProvider
type SendgridResponseBody ¶ added in v1.595.0
type SendgridResponseBody struct {
Errors []struct {
Message string `json:"message"`
Field interface{} `json:"field"`
Help interface{} `json:"help"`
} `json:"errors"`
}
type SmtpEmailProvider ¶
func NewSmtpEmailProvider ¶
Click to show internal directories.
Click to hide internal directories.