mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
Make Smtp.send async
This commit is contained in:
committed by
Floris Bruynooghe
parent
54eb30f3db
commit
a8e9a1fbe5
@@ -200,7 +200,7 @@ impl Job {
|
||||
info!(context, "smtp-sending out mime message:");
|
||||
println!("{}", String::from_utf8_lossy(&body));
|
||||
}
|
||||
match smtp.send(context, recipients_list, body, self.job_id) {
|
||||
match task::block_on(smtp.send(context, recipients_list, body, self.job_id)) {
|
||||
Err(crate::smtp::send::Error::SendError(err)) => {
|
||||
// Remote error, retry later.
|
||||
smtp.disconnect();
|
||||
|
||||
Reference in New Issue
Block a user