Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailService ¶
type EmailService struct {
// contains filtered or unexported fields
}
func NewEmailService ¶
func NewEmailService(token string) *EmailService
func (*EmailService) Send ¶
func (t *EmailService) Send(request *SendRequest) (*SendResponse, error)
Send an email by passing in from, to, subject, and a text or html body
type SendRequest ¶
type SendRequest struct { // the display name of the sender From string `json:"from"` // the html body HtmlBody string `json:"htmlBody"` // an optional reply to email address ReplyTo string `json:"replyTo"` // the email subject Subject string `json:"subject"` // the text body TextBody string `json:"textBody"` // the email address of the recipient To string `json:"to"` }
type SendResponse ¶
type SendResponse struct { }
Click to show internal directories.
Click to hide internal directories.