Hi again. Mail server is working fine so don't know why this isn't working...
$toaddress = 'ff20946@pfpc.ie';
$subject = 'Hello';
$mailcontent = 'none';
$fromaddress = 'me';
error_reporting(E_ALL ^ E_NOTICE);
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "From: Training Department\n";
$send = mail($toaddress, $subject, $mailcontent, $fromaddress);
if ($send)
{
echo 'Sent!!!!!';
}
else echo 'error';