MainWindow: Delay email sending
Test / Run tests (push) Successful in 2m4s

This commit is contained in:
2026-08-11 18:25:16 +02:00
parent 07b197958d
commit 76ea3513ac
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -516,7 +516,7 @@ namespace Elwig.Helpers {
public static async Task<SmtpClient?> GetSmtpClient() {
if (App.Config.Smtp == null)
return null;
var (host, port, mode, username, password, _) = App.Config.Smtp.Value;
var (host, port, mode, username, password, _, _) = App.Config.Smtp.Value;
var client = new SmtpClient();
await client.ConnectAsync(host, port, mode == "starttls" ? SecureSocketOptions.StartTls : SecureSocketOptions.None);
await client.AuthenticateAsync(username, password);