From 67645cfd058e42b42f5de267a0f7089f862a444d Mon Sep 17 00:00:00 2001 From: daniel-c-harvey Date: Sat, 20 Jun 2026 00:27:01 -0400 Subject: [PATCH 1/2] wire Mailtrap TestInbox config in DeepDrftAPI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Read AuthBlocks:Email:TestInbox from config (no throw — optional sandbox key). Add TestInbox placeholder to authblocks.example.json. --- DeepDrftAPI/Program.cs | 1 + DeepDrftAPI/environment/authblocks.example.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DeepDrftAPI/Program.cs b/DeepDrftAPI/Program.cs index 7fcfc64..57ae729 100644 --- a/DeepDrftAPI/Program.cs +++ b/DeepDrftAPI/Program.cs @@ -109,6 +109,7 @@ builder.Services.AddAuthBlocks(options => ?? throw new InvalidOperationException("AuthBlocks:Email:Token is required"); options.EmailConnection.FromAddress = builder.Configuration["AuthBlocks:Email:From"] ?? throw new InvalidOperationException("AuthBlocks:Email:From is required"); + options.EmailConnection.TestInbox = builder.Configuration["AuthBlocks:Email:TestInbox"]; options.AdminUserSettings = new AdminUserSettings { diff --git a/DeepDrftAPI/environment/authblocks.example.json b/DeepDrftAPI/environment/authblocks.example.json index 3a8b58f..497a5c3 100644 --- a/DeepDrftAPI/environment/authblocks.example.json +++ b/DeepDrftAPI/environment/authblocks.example.json @@ -9,7 +9,8 @@ "Email": { "Host": "smtp.your-provider.com", "Token": "your-email-token-here", - "From": "noreply@yourdomain.com" + "From": "noreply@yourdomain.com", + "TestInbox": "" }, "Admin": { "UserName": "admin", From c747f3200f0a3ada4d84738e1c362a46bcc508ff Mon Sep 17 00:00:00 2001 From: daniel-c-harvey Date: Sat, 20 Jun 2026 00:34:41 -0400 Subject: [PATCH 2/2] docs: clarify TestInbox placeholder in authblocks.example.json Empty string gave no hint what value is expected; signals the Mailtrap sandbox inbox ID that must be supplied. --- DeepDrftAPI/environment/authblocks.example.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeepDrftAPI/environment/authblocks.example.json b/DeepDrftAPI/environment/authblocks.example.json index 497a5c3..b867aa2 100644 --- a/DeepDrftAPI/environment/authblocks.example.json +++ b/DeepDrftAPI/environment/authblocks.example.json @@ -10,7 +10,7 @@ "Host": "smtp.your-provider.com", "Token": "your-email-token-here", "From": "noreply@yourdomain.com", - "TestInbox": "" + "TestInbox": "" }, "Admin": { "UserName": "admin",