smtp

package
v0.0.0-...-6fe13d1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SMTPPORTSTRING = ":25"

Functions

func CopyValideInfo

func CopyValideInfo(list []string) []string

func MySendMail

func MySendMail(addr string, a smtp.Auth, from string, to []string, msg []byte) error

修改原来的sendmail函数

Types

type Mail

type Mail struct {
	Tos     string `json:"tos"`
	Subject string `json:"subject"`
	Content string `json:"content"`
}

func (*Mail) String

func (this *Mail) String() string

type MailAcount

type MailAcount struct {
	User     string
	Password string
	Server   string
}

type SmtpMailSender

type SmtpMailSender struct {
	// contains filtered or unexported fields
}

func (*SmtpMailSender) SendMail

func (this *SmtpMailSender) SendMail(mail *Mail) error

func (*SmtpMailSender) SetMailAcount

func (this *SmtpMailSender) SetMailAcount(acount *MailAcount) error

Jump to

Keyboard shortcuts

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