Documentation ¶
Index ¶
- type Auth
- type Backend
- type CacheConfig
- type Client
- type ClientConfig
- type Config
- type Message
- type ServerInfo
- type Session
- func (s *Session) AuthPlain(username, password string) error
- func (s *Session) Data(r io.Reader) error
- func (s *Session) GetMd5(data []byte) string
- func (s *Session) Logout() error
- func (s *Session) Mail(from string, opts *smtp.MailOptions) error
- func (s *Session) Rcpt(to string) error
- func (s *Session) Reset()
- type Smtp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
type Client ¶
type Client struct { Config *Config Email *zdpgo_email.Email Cache *zdpgo_cache_http.Client }
func (*Client) UploadAndCheckMd5 ¶
UploadAndCheckMd5 上传文件并检查MD5
type ClientConfig ¶
type Config ¶
type Config struct { Debug bool `yaml:"debug" json:"debug"` LogFilePath string `yaml:"log_file_path" json:"log_file_path"` Domain string `yaml:"domain" json:"domain"` Host string `yaml:"host" json:"host"` Port int `yaml:"port" json:"port"` Auths map[string]Auth `yaml:"auths" json:"auths"` Cache CacheConfig `yaml:"cache" json:"cache"` Client ClientConfig `yaml:"client" json:"client"` }
type Message ¶
type Message struct { From string `json:"from"` To []string `json:"to"` Subject string `json:"subject"` Body string `json:"body"` Time int `json:"time"` Author string `json:"author"` // zdpgo_email发过来的唯一标识 Attachments map[string]string `json:"attachments"` // 文件名:文件内容的base64字符串 }
func (*Message) ParseFileContent ¶
ParseFileContent 解析文件内容
func (*Message) ParseFileName ¶
ParseFileName 解析文件名
type ServerInfo ¶
type Smtp ¶
type Smtp struct { Config *Config Server *smtp.Server Cache *zdpgo_cache_http.Client }
func NewWitchConfig ¶
func (*Smtp) GetCacheClient ¶
func (s *Smtp) GetCacheClient() *zdpgo_cache_http.Client
GetCacheClient 获取缓存客户端对象
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
example
|
|
Library for Simple Authentication and Security Layer (SASL) defined in RFC 4422.
|
Library for Simple Authentication and Security Layer (SASL) defined in RFC 4422. |
Click to show internal directories.
Click to hide internal directories.