fix: add 10-second timeout to all SMTP connections

SMTP connections with no timeout were causing indefinite hangs when
connecting to invalid hosts. Also improved error display template.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-05 23:11:24 +01:00
parent bbcac245ab
commit 4c2f7f1121
2 changed files with 22 additions and 14 deletions

View File

@@ -556,12 +556,16 @@
</button>
</div>
<!-- Local feedback for test email -->
<div x-show="testEmailError" x-transition class="mt-3 p-3 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg">
<p class="text-sm text-red-700 dark:text-red-400" x-text="testEmailError"></p>
</div>
<div x-show="testEmailSuccess" x-transition class="mt-3 p-3 bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg">
<p class="text-sm text-green-700 dark:text-green-400" x-text="testEmailSuccess"></p>
</div>
<template x-if="testEmailError">
<div class="mt-3 p-3 bg-red-100 border-2 border-red-500 rounded-lg">
<p class="text-sm text-red-700 font-medium" x-text="testEmailError"></p>
</div>
</template>
<template x-if="testEmailSuccess">
<div class="mt-3 p-3 bg-green-100 border-2 border-green-500 rounded-lg">
<p class="text-sm text-green-700 font-medium" x-text="testEmailSuccess"></p>
</div>
</template>
<p class="mt-2 text-xs text-gray-500 dark:text-gray-400">
Send a test email to verify the platform email configuration is working.
</p>