mailer

package
v0.2.33 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSendMailer

func GetSendMailer(mailOption Mailer) (ret *sendMail, err error)

获取发送邮件对象

func NewMailer

func NewMailer(optionName string) (mailer *sendMail, err error)

Types

type Mailer

type Mailer struct {
	Host     string
	Port     int
	UserName string
	Password string
	OpenTsl  bool
}

func (*Mailer) TlsDial

func (mail *Mailer) TlsDial(addr string) (*smtp.Client, error)

return a smtp client by TLS connect

Jump to

Keyboard shortcuts

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