Hey guys, im trying to send an email to my users with this php script, but for some reason the HTML just shows up as plain text.
I asume its because I need the MIME-encode it, but I have no clue how I could do this.
I know I have to insert something like:
Content-Transfer-Encoding: 7bit
Content-Type: multipart/mixed; boundary="---[boundary]---"
MIME-Version: 1.0
into my script, but I dont have a clue where to put it.
Here is a sample of my script.
/*MAIL SCRIPT*/
$subj="HoD Ladder Activation";
$who="$email";
$fro="From: [email]webmaster@hodladder.com[/email]\nReply-To: [email]webmaster@hodladder.com[/email]";
$info="$body";
$body="Dear $team,\n
#######Account Info########
Username: $team
Email Address: $email
Password: $password
###########Extra Information##########
Thank you for your interest in HoD Ladder.
This email has been automatically sent to you to confirm that your account has been set up. Although you still need to activate your account in order to play on the ladder. Please follow the instructions below to activate your account. You will only need to click on the link once, and your account will be updated. \n
To complete your registration, click on the link below: \n
<a href=\"http://www.hodladder.com/register/activate.php?activate=$activkey\">[url]http://www.hodladder.com/register/activate.php?activate=[/url]$activkey</a> \n
After clicking on the link you should be able to participate in the ladder. If you are having any problems please email <a href=\"mailto:webmaster@hodladder.com\">webmaster@hodladder.com</a>. \n
Thank you very much, \n
The HoD Ladder Team
";
mail("$who", "$subj", $body, "$fro");
All suggestions will be much appreciated.