Skip to content

Commit

Permalink
fix: smtp host param
Browse files Browse the repository at this point in the history
  • Loading branch information
cowienduckie committed Jan 29, 2024
1 parent 81b6251 commit a0cabbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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("mail.privateemail.com", 587, false, cancellationToken);
await _smtpClient.ConnectAsync(_mailkitOptions.SmtpHost, 587, true, cancellationToken);

if (!string.IsNullOrEmpty(_mailkitOptions.Username))
{
Expand Down Expand Up @@ -58,4 +58,4 @@ private MimeMessage CreateMailMessage(EmailData email)

return message;
}
}
}

0 comments on commit a0cabbe

Please sign in to comment.