allow account.sendmail when sendmail feature is on

This commit is contained in:
w3irdrobot 2024-01-01 13:49:31 -05:00
parent 12e71a5ba8
commit 77206b2326
No known key found for this signature in database
GPG key ID: 3E6DBBB622F3155C

View file

@ -113,6 +113,7 @@ impl From<Iter<'_, String, TomlAccountConfig>> for Accounts {
backends.push_str("smtp");
}
#[cfg(feature = "sendmail")]
if account.sendmail.is_some() {
if !backends.is_empty() {
backends.push_str(", ")