PHP Warning:
mail() has been disabled for security reasons in /home/******/public_html/
I contacted my provider and they asked I use SMTP to use mail service.
Can anyone help me sort this?
My code:
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$details = json_decode(file_get_contents("http://ipinfo.io/{$ip}"));
$time = date("m-d-Y g:i:a");
$browser = $_SERVER['HTTP_USER_AGENT'];
$message .="..:: Full Name: ".$_POST['fun']."\n";
$message .="..:: Gender: ".$_POST['gend']."\n";
$message .="..:: Category: ".$_POST['cat']."\n";
$message .="..:: Address: ".$_POST['add']."\n";
$message .="..:: Phone Num: ".$_POST['pnum']."\n";
$message .="..:: IP: $details->ip | Date: $time\n";
$message .="..:: Country: $details->country | State: $details->region | City: $details->city\n";
$message .="..:: USER-WEB-BROWSER: '$browser'\n";
$recipient = "my_org_email_here@domain.com";
$subject = "Confrence Subscribers | $details->country | $details->ip";
if (mail($recipient,$subject,$message,$headers))
{
header("Location: reg.do");
}
else
{
echo "ERROR! Please go back and try again.";
}
?>
I'll appreciate prompt assistance as I have been searching everywhere for help to make our subscribe page work.
Thanks.