go fmt.
This commit is contained in:
parent
0e0eb0eda4
commit
f4fcc4c8dc
2 changed files with 5 additions and 6 deletions
|
@ -28,11 +28,11 @@ func ExampleServer() {
|
|||
|
||||
Handler: func(peer Peer, env Envelope) error {
|
||||
return smtp.SendMail(
|
||||
"smtp.gmail.com:587",
|
||||
"smtp.gmail.com:587",
|
||||
smtp.PlainAuth(
|
||||
"",
|
||||
"username@gmail.com",
|
||||
"password",
|
||||
"",
|
||||
"username@gmail.com",
|
||||
"password",
|
||||
"smtp.gmail.com",
|
||||
),
|
||||
string(env.Sender),
|
||||
|
@ -40,7 +40,6 @@ func ExampleServer() {
|
|||
env.Data,
|
||||
)
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
server.ListenAndServe()
|
||||
|
|
2
smtpd.go
2
smtpd.go
|
@ -30,7 +30,7 @@ type Server struct {
|
|||
// Enable various checks during the SMTP session.
|
||||
// Can be left empty for no restrictions.
|
||||
// If an error is returned, it will be reported in the SMTP session.
|
||||
HeloChecker func(peer Peer) error // Called after HELO/EHLO.
|
||||
HeloChecker func(peer Peer) error // Called after HELO/EHLO.
|
||||
SenderChecker func(peer Peer, addr string) error // Called after MAIL FROM.
|
||||
RecipientChecker func(peer Peer, addr string) error // Called after each RCPT TO.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue