email

package
v0.0.0-...-c7fab77 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfrimEmailContent

func CreateConfrimEmailContent(lang, websiteName, authTokenURL string) string

用户登录名称 mailout@5761912992379058.onaliyun.com AccessKey ID LTAI4GGJv3t3T1RVDmqWgRN2 AccessKey Secret rwN9Jcc3UCjiCcQVA7xz4BCbtpmd6h CreateConfrimEmailContent 创建 认证EMAIL 发送内容

func SendTokenURLEmail

func SendTokenURLEmail(lang, ToAddress string, tokenURL string)

发送 邮件认证

Types

type Client

type Client struct {
	AccessKeyID     string
	AccessKeySecret string
}

Client is used to send mail request.

func NewClient

func NewClient(accessKeyID, accessKeySecret string) *Client

NewClient function construct a new Client.

func (Client) SendRequest

func (c Client) SendRequest(r *MailRequest) (string, error)

SendRequest method sends out a MailRequest.

type MailRequest

type MailRequest struct {
	Action         string
	AccountName    string
	ReplyToAddress bool
	AddressType    int
	ToAddress      string
	FromAlias      string
	Subject        string
	HtmlBody       string
	TextBody       string
}

MailRequest struct represents a mail to be sent.

type ParameterSet

type ParameterSet struct {
	// contains filtered or unexported fields
}

func NewParameterSet

func NewParameterSet() *ParameterSet

func (ParameterSet) Add

func (s ParameterSet) Add(key, value string)

func (ParameterSet) Concatenate

func (s ParameterSet) Concatenate() string

func (ParameterSet) GetStringToSign

func (s ParameterSet) GetStringToSign() string

func (ParameterSet) Sign

func (s ParameterSet) Sign(content, accessKeySecret string) string

Jump to

Keyboard shortcuts

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