I haven't really worked that much with the mail function, but yeah i will need this,
as far as i remember \n is a new line right? but it doesn't work =s
so this is my code:
Code: Select all
$message = 'Hello player,\n\nYou registrated a new account on gamedev.comuf.com, click the link to activate!\nhttp://gamedev.comuf.com/activate.php?email='.$email.'&code='.$code;but the mail just looks like this
Hello player,\n\nYou registrated a new account on gamedev.comuf.com, click the link to activate!\n-link =p-
why doesn't it make enters where i put \n?
this is the full code
Code: Select all
$to = $email;
$subject = 'Game Registration';
$message = 'Hello player,\n\nYou registrated a new account on gamedev.comuf.com, click the link to activate!\nhttp://gamedev.comuf.com/activate.php?email='.$email.'&code='.$code;
$header = 'From: noreply@gamedev.comuf.com';
mail($to, $subject, $message, $header);Thanks,
Stefans