diff --git a/send.php b/send.php index 11b82b7..54ed5b9 100644 --- a/send.php +++ b/send.php @@ -82,7 +82,9 @@ $headers .= "Content-Type: text/plain; charset=UTF-8\r\n"; $headers .= "X-Mailer: Cuitunet-Web\r\n"; // Lähetys -$sent = mail($to, $subject, $body, $headers); +error_log("cuitunet.fi send.php: Lähetetään posti osoitteeseen $to, aihe: $subject"); +$sent = @mail($to, $subject, $body, $headers); +error_log("cuitunet.fi send.php: mail() palautti: " . ($sent ? 'true' : 'false') . ", error: " . error_get_last()['message'] ?? 'none'); if ($sent) { // Tallenna rate limit