From 834091045ffc7628973edbd31a3f49afb9a5d5ca Mon Sep 17 00:00:00 2001 From: Ivy Evans Date: Wed, 6 Dec 2017 12:39:09 -0800 Subject: [PATCH] Document NetDialTimeout --- smtp.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/smtp.go b/smtp.go index 12d0606..b523f15 100644 --- a/smtp.go +++ b/smtp.go @@ -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