mail

package
v1.3.18 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsConfig

type AwsConfig struct {
	Ak       string   `toml:"ak"`
	Sk       string   `toml:"sk"`
	Region   string   `toml:"region"`
	Bucket   string   `toml:"bucket"`
	ACL      string   `toml:"acl"`
	SesMail  string   `toml:"sesMail"`
	WorkMail WorkMail `toml:"workMail"`
}

AwsConfig aws配置信息结构体

type AwsMail

type AwsMail struct {
	Product     string   `json:"product"`
	From        string   `json:"from"`
	To          []string `json:"to"`
	Cc          []string `json:"cc,omitempty"`
	HTMLContent string   `json:"htmlContent"`
	TextContent string   `json:"textContent"`
	Attach      string   `json:"attach"`
	Subject     string   `json:"subject"`
}

AwsMail 邮件

func (*AwsMail) Send

func (m *AwsMail) Send(ctx context.Context) error

Send 发送邮件

type AwsSesMail

type AwsSesMail struct {
	From        *string   `json:"from"`
	To          []*string `json:"to"`
	Cc          []*string `json:"cc,omitempty"`
	Subject     *string   `json:"subject"`
	HTMLContent *string   `json:"htmlContent"`
	TextContent *string   `json:"textContent"`
	Attach      *string   `json:"attach"`
}

AwsSesMail 邮件

type WorkMail

type WorkMail struct {
	Server string `toml:"server"`
	Port   int    `toml:"port"`
	Pwd    string `toml:"Pwd"`
	User   string `toml:"user"`
}

WorkMail 邮件配置

Jump to

Keyboard shortcuts

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