From 4a77f587c3cebc1cce86d620cc05699bbfaac25d Mon Sep 17 00:00:00 2001 From: Marcin Mielniczuk Date: Tue, 16 Oct 2018 01:39:47 +0200 Subject: [PATCH] docs(transport-smtp): Improve SmtpClient docs. Mention SmtpClient::new_simple in the docs for SmtpClient::new --- lettre/src/smtp/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lettre/src/smtp/mod.rs b/lettre/src/smtp/mod.rs index 78bb695..c6dbd2f 100644 --- a/lettre/src/smtp/mod.rs +++ b/lettre/src/smtp/mod.rs @@ -103,6 +103,8 @@ impl SmtpClient { /// * No authentication /// * No SMTPUTF8 support /// * A 60 seconds timeout for smtp commands + /// + /// Consider using [`SmtpClient::new_simple`] instead, if possible. pub fn new(addr: A, security: ClientSecurity) -> Result { let mut addresses = addr.to_socket_addrs()?;