Hi all,
Why won't the below work? I always get error displayed. The php.ini smtp is set correctly to the right server. But it wont work. Tried using the file on another server and it works fine.
Any ideas?
thanks.
Kevin.
$toaddress = 'frank@mysite.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: me \n";
@$send = mail($toaddress, $subject, $mailcontent, $fromaddress);
if ($send)
{
echo 'Sent!!!!!';
}
else echo 'error';