anyone help me do this so users get sent an email when its there birthday .
i have added the email code from register to the birthday code in core but it does nowt.
can anyone help thanks,.
	
							
						
					i have added the email code from register to the birthday code in core but it does nowt.
can anyone help thanks,.
Code:
	
	 if ($td!=$lbpm[0])
  {
    //echo "boo";
    $sql = "SELECT id, name, birthday  FROM ibwf_users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate())";
    $ppl = mysql_query($sql);
    while($mem = mysql_fetch_array($ppl))
    {
        $msg = "[card=008]to you $mem[1]"."[/card] $sitename team wish you a great day   .dont get too drunk and tell someone on wap u love them lmao (present)[br/](fireworks)[br/][small][i]p.s: this is an automated pm[/i][/small]";
        autopm($msg, $mem[0]);
$email = $_GET["email"];
$uid = $_GET["uid"];
$msg = "\n Username: ".$uid." happy birthday from  ".$sitename." ".$sitename."";
$subj = "Happy birthday ".$sitename."";
$headers = 'From: host@yoursite.com' . "\r\n" .
'Reply-To: host@yoursite.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($email, $subj, $msg, $headers);
    }
    mysql_query("UPDATE ibwf_settings SET value='".$td."' WHERE name='lastbpm'");
  }
  
}

Comment