]> Cypherpunks repositories - gostls13.git/commit
net/smtp: add optional Hello method
authorRick Arnold <rickarnoldjr@gmail.com>
Mon, 17 Dec 2012 01:19:35 +0000 (20:19 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 17 Dec 2012 01:19:35 +0000 (20:19 -0500)
commit475dee9082f740f77a9e17d2e2242e647c860f13
treee7c7d88fcc0f53f5a16ff901784f3cd7d5a2b37a
parent013fa63c901e4a08548821bcc46393584b8c701e
net/smtp: add optional Hello method

Add a Hello method that allows clients to set the server sent in the EHLO/HELO exchange; the default remains localhost.
Based on CL 5555045 by rsc.

Fixes #4219.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6946057
src/pkg/net/smtp/smtp.go
src/pkg/net/smtp/smtp_test.go