mail

package module
v0.0.0-...-a8e059b Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

type Mail struct {
	From        string
	FromAddress string
	To          string
	ToAddress   string
	Subject     string
	Message     string
}

type MailClient

type MailClient struct {
	Key string

	VerifedReplySender        string
	VerifedReplySenderAddress string
	// contains filtered or unexported fields
}

func NewMailClient

func NewMailClient(client *MailClient) *MailClient

func (*MailClient) NewMail

func (mc *MailClient) NewMail(mail *Mail) (*MailResponse, error)

type MailReply

type MailReply struct {
	From *sgMail.Email
	To   *sgMail.Email
}

type MailResponse

type MailResponse struct {
	ClientResponse *rest.Response
	Mail           *MailReply
}

func (*MailResponse) Reply

func (mr *MailResponse) Reply(subject string, replyMessage string) (*rest.Response, error)

Jump to

Keyboard shortcuts

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