rgmsg

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 6 Imported by: 0

README

发送邮件和企业微信工具包

Documentation

Index

Constants

View Source
const (
	EMAIL msgType = iota + 1
	WECHAT
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	This         *rgrequest.Client `json:"-"` // json解析忽略
	Typ          msgType
	Title        string   // <LiJunDong : 2022-05-27 12:00:36> --- 公用标题
	EmailTo      []string // <LiJunDong : 2022-05-27 12:01:44> --- 接受方
	EmailCc      []string // <LiJunDong : 2022-05-27 12:01:39> --- 抄送方
	EmailBCc     string   // <LiJunDong : 2022-05-27 12:01:32> --- 秘密抄送方
	EmailContent string   // <LiJunDong : 2022-05-27 12:02:06> --- 邮件内容
	EmailAttach  string   // <LiJunDong : 2022-05-27 12:01:32> --- 邮件附件路径
	EmailFrom    string   // <LiJunDong : 2022-05-28 15:00:08> --- 发送方

	WechatContent string   // <LiJunDong : 2022-05-27 12:08:21> --- 企业微信消息中 主要内容描述
	WechatData    []string // <LiJunDong : 2022-05-27 12:08:51> --- 企业微信中key:value形式展示在内容描述下面
	// contains filtered or unexported fields
}

func (*Client) Send

func (c *Client) Send() (err error)

Send 发送邮件 @Param : @Return : err error 一般情况,异常邮件不需要考虑返回值,代码中可以_忽略 @Author : LiJunDong @Time : 2022-05-27

Jump to

Keyboard shortcuts

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