Skip to content

Commit

Permalink
fix: EmailService => Using correctly the config "EmailSettings:UseSSL…
Browse files Browse the repository at this point in the history
…" from appsettings
  • Loading branch information
henriqueholtz committed Sep 28, 2024
1 parent 7e40db5 commit c1daf7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShareBook/ShareBook.Service/Email/EmailService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public async Task<IList<string>> ProcessBounceMessagesAsync()
return log;
}

await _imapClient.ConnectAsync(_settings.HostName, _settings.ImapPort, true);
await _imapClient.ConnectAsync(_settings.HostName, _settings.ImapPort, _settings.UseSSL);
await _imapClient.AuthenticateAsync(_settings.Username, _settings.Password);

var bounceFolder = await GetBounceFolderAsync();
Expand Down

0 comments on commit c1daf7a

Please sign in to comment.