go-smtp
go-smtp copied to clipboard
Add ServerDomain member into the ConnectionState struct
Add server's hostname (domain) into the ConnectionState struct.
It can be used for logging purposes.
Hm, can't you just get it from the Server directly?
when you pass only the state to some internal func, there could be no server struct, only the state. introducing a new struct wrapper around that contains ServerDomain member looks like an overkill... :\
ConnectionState has been dropped, superseded by NewSession.