]> Cypherpunks repositories - gostls13.git/commit
net/smtp: return error from SendMail when required AUTH not available
authorJohnny Luo <johnnyluo1980@gmail.com>
Fri, 24 Nov 2017 10:21:44 +0000 (21:21 +1100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 13 Feb 2018 18:38:05 +0000 (18:38 +0000)
commit701fa1c5ed8df2cde01487729c0e29c924e08050
tree3532792aeafecfec038c498bcb337b9e4e46c65a
parente4bde0510465eecd4c8a8293418b1cbed1e0e623
net/smtp: return error from SendMail when required AUTH not available

Return an error if an Auth is passed to SendMail but the server does not support authentication.

Fixes #22145

Change-Id: I49a37259c47bbe5145e30fa8a2d05444e60cb378
Reviewed-on: https://go-review.googlesource.com/79776
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/smtp/smtp.go
src/net/smtp/smtp_test.go