I'm sending an email when a user registers, but the content is not showing up in the email body. There's an attachment that comes, so just wondering what the heck I'm doing wrong here.
$to = "$email";
$from = "admin@sodidwe.com";
$subject = "so.did.we registration link";
$message =
"Hi $firstname,
Please complete this step to activate your new account at so.did.we.
Click, or copy and paste the link below into your browser address bar:
http://www.sodidwe.com/activation.php?id=$user_id&sequence=$db_password
Use these to sign in to the member area after account activation:
Username: $username
Password: $password
See you on the site!
admin@sodidwe.com
so.did.we
where strangers become friends"
;
//end of message
$headers = "From: $from\r\n";
$headers .= "Content-type: text\r\n";
mail($to, $subject, $message, $headers);
$msgToUser = "<h2>One Last Step!</h2>$firstname, thank you for registering with so.did.we.<br />
In a moment you will be sent an email with an activation link for your account.<br /><br />
<br />
<strong><font color=\"#990000\">If you do not receive, or cannot activate your account, please contact the so.did.we team at: admin@sodidwe.com.</font></strong>
";
include_once 'user_message.php';
exit();
}