Probably the easiest way to go would be to use the mailer from the PEAR package for php, all you do is set isHTML to true and it will write the headers and all that good stuff for you. It makes mail 100 times easier.
Here's the link for you
http://pear.php.net/package/Mail
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
This is using the PEAR mailer package
require("phpmailer/class.phpmailer.php");
// personal info ommitted
$mail = new PHPMailer();
$mail->From = "Application@NarutoFor.Us";
$mail->AddAddress($email);
$mail->FromName = "NarutoMUD";
$mail->Subject = "Thank you for applying to NarutoMUD";
$replymsg = str_replace("%RESPONSE%", "{$response}", $replymsg);
$mail->Body = $replymsg;
$mail->WordWrap = 50;
$mail->AltBody = $altmsg;
$mail->IsHTML(true); //note this line
if(!$mail->Send())
{
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
}
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
add mimetypes to your code...
the PEAR mailer class automatically adds the text/html mimetype to the headers when you say implementation->isHTML = true;
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
I'm not sure what implementation you are using because, obviously, it looks very different from the one I'm using. There wasn't really any "installing" when using the PEAR mailer. It was just downloading the class.phpmailer.php file and using the functions provided.
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268