From 2579450eae95f3e0d8aa0e9638ac030e452cb42b Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sun, 3 May 2026 14:24:03 +0200 Subject: [PATCH] "Send Testmail" button (not translated) #3050 --- .../src/app/settings/ApplicationSettings.tsx | 34 +++++++++++++++++-- platformio.ini | 2 +- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/interface/src/app/settings/ApplicationSettings.tsx b/interface/src/app/settings/ApplicationSettings.tsx index e401862cd..61f8b5dc2 100644 --- a/interface/src/app/settings/ApplicationSettings.tsx +++ b/interface/src/app/settings/ApplicationSettings.tsx @@ -165,6 +165,21 @@ const ApplicationSettings = () => { await doRestart(); }; + const sendmail = async () => { + await sendAPI({ + device: 'system', + cmd: 'sendmail', + data: 'testmail', + id: 0 + }) + .then(() => { + toast.success(LL.SUCCESSFUL()); + }) + .catch((error: Error) => { + toast.error(error.message); + }); + }; + const boardProfileItems = boardProfileSelectItems(); const content = () => { @@ -362,8 +377,7 @@ const ApplicationSettings = () => { container spacing={2} direction="row" - justifyContent="flex-start" - alignItems="flex-start" + sx={{ justifyContent: 'flex-start', alignItems: 'flex-start' }} > { margin="normal" /> - + {!data.email_starttls && ( { margin="normal" /> + + + )} diff --git a/platformio.ini b/platformio.ini index 5abde677e..68416221c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -39,7 +39,7 @@ build_flags = -D CONFIG_ASYNC_TCP_PRIORITY=10 ; default -D CONFIG_ASYNC_TCP_QUEUE_SIZE=64 ; default -D CONFIG_ASYNC_TCP_RUNNING_CORE=1 ; force async_tcp task to be on same core as Arduino app (default is any core) - -D CONFIG_ASYNC_TCP_STACK_SIZE=6144 ; default is 16KB/8192*2 + -D CONFIG_ASYNC_TCP_STACK_SIZE=8192 ; default is 16KB/8192*2 ; ESPAsyncWebServer ; -D WS_MAX_QUEUED_MESSAGES=0 ; not used, default 8 ; -D SSE_MAX_QUEUED_MESSAGES=1 ; for log messages, default 32