The following code should send an email but its not! and am not sure why, can anybody help?
if($Email)
{
print "email found";// if record exists do something
$email="$Email";
$from="admin@ecommi.com";
$subject="New data record";
$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, 'from'=>$from));
if(!$ret["mailed"])
echo $ret["message"];
return true;
}
else
{
print "email not found";
// if dont exist do something else
}
}