Skip to content

Commit

Permalink
chore: update mailkit
Browse files Browse the repository at this point in the history
  • Loading branch information
cowienduckie committed Dec 3, 2023
1 parent fe72d52 commit dd29f85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion k8s/charts/communication-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ env:
value: http://identity-api:15101

- name: MailKit__SmtpHost
value: external-email-sender
value: mail.privateemail.com
- name: MailKit__SmtpPort
value: '587'
- name: MailKit__Username
Expand Down
2 changes: 1 addition & 1 deletion src/BuildingBlocks/Email.MailKit/MailKitSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public MailKitSender(SmtpClient smtpClient, IOptionsMonitor<MailKitOptions> mail

public async Task SendAsync(EmailData email, CancellationToken cancellationToken)
{
await _smtpClient.ConnectAsync(_mailkitOptions.SmtpHost, _mailkitOptions.Port, cancellationToken: cancellationToken);
await _smtpClient.ConnectAsync(_mailkitOptions.SmtpHost, _mailkitOptions.Port, true, cancellationToken);

if (!string.IsNullOrEmpty(_mailkitOptions.Username))
{
Expand Down

0 comments on commit dd29f85

Please sign in to comment.