Switch to SMTP mail sending via mail2.fi

Replace PHP mail() with direct SMTP authentication through
mail2.fi to ensure reliable email delivery.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 00:31:40 +02:00
parent 501ca783af
commit 982e6c34bd
3 changed files with 149 additions and 12 deletions

8
config.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
// SMTP-asetukset — EI versionhallintaan!
define('SMTP_HOST', 'mx.mail2.fi');
define('SMTP_PORT', 587);
define('SMTP_USER', 'sivusto@konesaliturku.fi');
define('SMTP_PASS', 'm3vE3ww!!1123GGG');
define('SMTP_FROM', 'sivusto@konesaliturku.fi');
define('SMTP_FROM_NAME', 'Konesali Turku');