Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
Document NetDialTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy committed Dec 6, 2017
1 parent f10eb0a commit 8340910
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions smtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ func NewPlainDialer(host string, port int, username, password string) *Dialer {
return NewDialer(host, port, username, password)
}

// NetDialTimeout specifies the DialTimeout function to establish a connection
// to the SMTP server. This can be used to override dialing in the case that a
// proxy or other special behavior is needed.
var NetDialTimeout = net.DialTimeout

// Dial dials and authenticates to an SMTP server. The returned SendCloser
Expand Down

0 comments on commit 8340910

Please sign in to comment.