Merge pull request #463 from w3irdrobot/sendmail-fix

allow account.sendmail when sendmail feature is on
This commit is contained in:
Clément DOUIN 2024-01-01 22:32:51 +01:00 committed by GitHub
commit 37c352ea7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(", ")