Mam problem z formularzem. Nie wiem dlaczego dane z niego ni mogą być wysłane na email a teraz dodatkowo cały czas funkcja mail zwraca false. Ktoś wie o co chodzi? Bo już nie mam pomysłu. Testowałem na localhoście, VPS i hostingu cba.pl
<?php
require_once '../core.php';
$title="Wiadomość z formularza kontaktowego od ".addslashes($_POST['email']);
$headers = "Reply-to: ".addslashes($_POST['email']).PHP_EOL;
$headers .= "From: ".$CONFIG['email_sender']."".PHP_EOL;
$headers .= "MIME-Version: 1.0".PHP_EOL;
$headers .= "Content-type: text/html; charset=iso-8859-2".PHP_EOL;
if(mail($CONFIG['email'], $title, addslashes($_POST['content']), $headers))
{
$_SESSION['send']=true;
//header('Location: ../index.php/contact');
}
else
{
//header("Location: ../error.php");
}