Documentation ¶
Index ¶
- Constants
- Variables
- func Send(info *Info)
- type Info
- func (i *Info) AppendText(s string)
- func (i *Info) SetFrom(s string)
- func (i *Info) SetHost(s string)
- func (i *Info) SetImage(s string)
- func (i *Info) SetPassword(s string)
- func (i *Info) SetPort(n int)
- func (i *Info) SetSubject(s string)
- func (i *Info) SetText(s string)
- func (i *Info) SetTo(s []string)
- func (i *Info) SetUsername(s string)
- type Server
Constants ¶
View Source
const ( LF = "\u000A" // \n CR = "\u000D" // \r CRLf = "\U000D000A" // \r\n DOUBLECRLF = "\U000D000A\U000D000A" // \r\n\r\n NULL = "\u0000" // null NBSP = "\u00A0" // No-Break Space BR = "<br>" )
Variables ¶
View Source
var Gmail = &Server{
POP3: "pop.gmail.com",
POP3Port: 995,
SMTP: "smtp.gmail.com",
SMTPProt: 587,
}
View Source
var NetEase = &Server{
POP3: "pop.163.com",
POP3Port: 110,
SMTP: "smtp.163.com",
SMTPProt: 25,
}
View Source
var QQ = &Server{
POP3: "pop.qq.com",
POP3Port: 995,
SMTP: "smtp.qq.cocm",
SMTPProt: 465,
}
Functions ¶
Types ¶
type Info ¶
type Info struct { Form string `json:"form"` To []string `json:"to"` Subject string `json:"subject"` Text string `json:"text"` Image string `json:"image"` Host string `json:"host"` Port int `json:"port"` Username string `json:"username"` Password string `json:"password"` }
func (*Info) AppendText ¶ added in v0.0.14
func (*Info) SetPassword ¶ added in v0.0.13
func (*Info) SetSubject ¶ added in v0.0.5
func (*Info) SetUsername ¶ added in v0.0.13
Click to show internal directories.
Click to hide internal directories.