mirror of
https://github.com/soywod/himalaya.git
synced 2024-11-22 02:50:19 +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
1 changed files with 1 additions and 1 deletions
|
@ -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)?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue