mq_mail

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMail

func SendMail(product *rabbit.RbMqClient, to, cc, bcc, title, body string, filePath []string, foreign bool) (bool, error)

SendMail 基于路径发送邮件附件

func SendMailByte

func SendMailByte(product *rabbit.RbMqClient, to, cc, bcc, title, body string, fileInfo map[string][]byte, foreign bool) (bool, error)

SendMailByte 基于二进制数据发送邮件附件

Types

type Mail

type Mail struct {
	To         string      `json:"to"`
	Cc         string      `json:"cc"`
	Bcc        string      `json:"bcc"`
	Title      string      `json:"title"`
	Body       string      `json:"body"`
	Attachment [][2]string `json:"attachment"`
	Foreign    bool        `json:"foreign"`
}

type MailInfo

type MailInfo struct {
	Mail Mail `json:"mail"`
}

Jump to

Keyboard shortcuts

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