mirror of
https://github.com/soywod/himalaya.git
synced 2024-09-05 18:41:11 +00:00
fix smtp port (#94)
* Respect smtp port when sending email (cherry picked from commit ef89cbd30296389b7d363ecbb03080081304d98e) * smtp: remove explicit timeout Also remove redundant variable
This commit is contained in:
parent
926f476194
commit
647c0c25ce
|
@ -22,8 +22,8 @@ pub fn send(account: &Account, msg: &lettre::Message) -> Result<()> {
|
||||||
};
|
};
|
||||||
|
|
||||||
smtp_relay(&account.smtp_host)?
|
smtp_relay(&account.smtp_host)?
|
||||||
|
.port(account.smtp_port)
|
||||||
.credentials(account.smtp_creds()?)
|
.credentials(account.smtp_creds()?)
|
||||||
.timeout(Some(Duration::new(1000, 0)))
|
|
||||||
.build()
|
.build()
|
||||||
.send(msg)?;
|
.send(msg)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue