Move strict_tls, max_smtp_rcpt_to from Provider to ProviderOptions

This commit is contained in:
iequidoo
2023-02-16 17:46:28 -03:00
committed by iequidoo
parent 604c4fcb71
commit 3b5227c42a
6 changed files with 39 additions and 139 deletions

View File

@@ -47,7 +47,7 @@ impl Smtp {
let chunk_size = context
.get_configured_provider()
.await?
.and_then(|provider| provider.max_smtp_rcpt_to)
.and_then(|provider| provider.opt.max_smtp_rcpt_to)
.map_or(DEFAULT_MAX_SMTP_RCPT_TO, usize::from);
for recipients_chunk in recipients.chunks(chunk_size) {