From 0e05e0e7924d2ba9db08a197344ff19c95870785 Mon Sep 17 00:00:00 2001 From: gralpli <25158727+gralpli@users.noreply.github.com> Date: Fri, 29 Nov 2019 15:39:22 +0100 Subject: [PATCH] docs(transport-smtp): fix docs for `domain` field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `domain` field does not get “send to the server”, but is used to check the authenticity of the server. --- lettre/src/smtp/client/net.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lettre/src/smtp/client/net.rs b/lettre/src/smtp/client/net.rs index 000ec5d..18fa84c 100644 --- a/lettre/src/smtp/client/net.rs +++ b/lettre/src/smtp/client/net.rs @@ -12,7 +12,7 @@ use std::time::Duration; pub struct ClientTlsParameters { /// A connector from `native-tls` pub connector: TlsConnector, - /// The domain to send during the TLS handshake + /// The domain name which is expected in the TLS certificate from the server pub domain: String, }