mail

package module
v0.0.0-...-ef585ea Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: MIT Imports: 7 Imported by: 0

README

A Simple Method of Sending Mail

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Name        string
	ContentType string
	WithFile    bool
}

附件

type Mail

type Mail interface {
	Auth()
	Send(message Message) error
}

type MailConf

type MailConf struct {
	User        string
	Password    string
	Host        string
	Port        string
	AuthContent smtp.Auth
}

func (*MailConf) Auth

func (mail *MailConf) Auth()

func (*MailConf) Send

func (mail *MailConf) Send(message Message) error

type Message

type Message struct {
	From        string
	To          []string
	Cc          []string
	Bcc         []string
	Subject     string
	Body        string
	ContentType string
	Attachment  Attachment
}

Jump to

Keyboard shortcuts

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