Vaihda sähköpostin lähetys SMTP:ksi (mail2.fi)

- send.php: SMTP STARTTLS AUTH LOGIN smtp.mail2.fi:587 kautta
- config.php: SMTP-tunnukset erillisessä tiedostossa
- PHP mail() ei toimi koska MX osoittaa mail2.fi:hin

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 11:49:13 +02:00
parent eb4662e586
commit aa0f4957d5
2 changed files with 167 additions and 18 deletions

9
config.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
// SMTP-asetukset sähköpostin lähettämiseen
define('SMTP_HOST', 'smtp.mail2.fi');
define('SMTP_PORT', 587);
define('SMTP_USER', 'box@storagebox.fi');
define('SMTP_PASS', 'Salainensana123!');
define('MAIL_FROM', 'box@storagebox.fi');
define('MAIL_FROM_NAME', 'StorageBox.fi');
define('MAIL_TO', 'box@storagebox.fi');