From 647c0c25ce8cf7185e6bf6dcb7913c8b970ae1c4 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar <3998+srid@users.noreply.github.com> Date: Tue, 13 Apr 2021 10:44:24 -0400 Subject: [PATCH] fix smtp port (#94) * Respect smtp port when sending email (cherry picked from commit ef89cbd30296389b7d363ecbb03080081304d98e) * smtp: remove explicit timeout Also remove redundant variable --- src/smtp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smtp.rs b/src/smtp.rs index feb132bc..44e8d5bc 100644 --- a/src/smtp.rs +++ b/src/smtp.rs @@ -22,8 +22,8 @@ pub fn send(account: &Account, msg: &lettre::Message) -> Result<()> { }; smtp_relay(&account.smtp_host)? + .port(account.smtp_port) .credentials(account.smtp_creds()?) - .timeout(Some(Duration::new(1000, 0))) .build() .send(msg)?;