fix: update OpenSearch host configuration and improve code consistency across controllers and components

This commit is contained in:
Kaimbacher 2026-06-24 11:38:24 +02:00
commit 6c75efbc28
7 changed files with 368 additions and 141 deletions

View file

@ -85,15 +85,14 @@ export default class MailSettingsController {
}
try {
await mail.send(
(message) => {
message
// .from(Config.get('mail.from.address'))
.from('tethys@geosphere.at')
.to(userEmail)
.subject('Test Email')
.html('<p>If you received this email, the email configuration seems to be correct.</p>');
});
await mail.send((message) => {
message
// .from(Config.get('mail.from.address'))
.from('tethys@geosphere.at')
.to(userEmail)
.subject('Test Email')
.html('<p>If you received this email, the email configuration seems to be correct.</p>');
});
return response.json({ success: true, message: 'Test email sent successfully' });
// return response.flash('Test email sent successfully!', 'message').redirect().back();