email

package
v0.0.0-...-795d1ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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 {
}

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL