mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
Set Smtp.error when SMTP fails to send message
This commit is contained in:
@@ -152,6 +152,7 @@ impl Smtp {
|
|||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
warn!(context, 0, "SMTP failed to send message: {}", err);
|
warn!(context, 0, "SMTP failed to send message: {}", err);
|
||||||
|
self.error = Some(format!("{}", err));
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user