docs(transport-smtp): Improve SmtpClient docs.

Mention SmtpClient::new_simple in the docs for SmtpClient::new
This commit is contained in:
Marcin Mielniczuk
2018-10-16 01:39:47 +02:00
parent c988b1760a
commit 4a77f587c3

View File

@@ -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<A: ToSocketAddrs>(addr: A, security: ClientSecurity) -> Result<SmtpClient, Error> {
let mut addresses = addr.to_socket_addrs()?;