mail

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

@Time : 2020/6/2 11:13 @Author : wayos @File : gomail.go @Software: bill-service

Index

Constants

View Source
const (
	// 文本内容
	TextMail string = `text/plain`
	// 前端内容
	HtmlMail string = `text/html`
)

邮件内容类型

Variables

This section is empty.

Functions

func SendMail

func SendMail(msg *Msg) error

SendMail

Types

type Msg

type Msg struct {
	Name        string
	User        string
	Password    string
	Host        string
	Port        int
	SendTo      []string
	Subject     string
	Body        string
	ContentType string
}

Msg

Jump to

Keyboard shortcuts

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