I need to send out mails to people and I cant get new lines to work. Please look at code.
// Send out mails
function send_mail($mailid,$fromid,$sub,$msg) {
$headers = "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $fromid\r\n";
$headers .= "Reply-To: $fromid\r\n";
$mailid=split(",",$mailid);
for($i=0;$i<count($mailid);$i++)
{
mail($mailid[$i], $sub, $msg,$headers);
}
return 1;
}
send_mail($dg[5],"support@clickincash.com","Power Hour Link #$ph Added to Clickin Cash","Your Power Hour Link #$ph, has just been added.
To see the stats on this link please follow the url below:
<a href=\"http://clickincash.com/adstats.php?do=View%20Stats&id=$ph\" target=\"new\">[url]http://clickincash.com/adstats.php?do=View%20Stats&id=[/url]$ph</a>
You will get notified once link becomes inactive.
Thank You,
Clickin Cash");
When I recieve email it has no new lines, its like a paragraph??