i want to include my email address in this code as the FROM:.
how do put the code in so that when ppl receive the confirmation email my email is shown?
how do put the code in so that when ppl receive the confirmation email my email is shown?
Code:
else{
$getid = mysql_query("SELECT * FROM 4wap_top where name = '$name' ");
while($get = mysql_fetch_array($getid)){
$id = $get['id'];
$sendto = $get['mail'];
$subject = "4WAP Toplist link\n";
$message = "toplist, $mymail\n\nRegistration successful!\nplease place a link from your site to:\n$yoursite?id=$id\n";
mail($sendto, $subject, $message);
}
print"Registration Successful!
please place a link from your site to:
".$yoursite."?id=".$id."
to increase your rating.
This link has also been emailed to:
".$sendto."
<a href=\"index.php\">Main Menu</a>
";

Comment