PHP Mail no images

Looks like everyone needs help with mail :) I need help with 2 things I am trying to send a link to an email account on registration, so they can verify their email address. #1 I would really love to be able to format the text in the message with HTML, but none of my attempts worked, it always sent the html tags as plain text. #2 Most important I am tyring to echo a T Varible into the message heres the code
[php]
$URLE = ‘http://www.sltrinkets.com/SLTbAnK/interact/emv.php?data=’ .urlencode( $key);
$to = $_POST[‘email’];
$subject = “Thank you for registering at SLTrinkets.com”;
$from = "[email protected]";
$message = “?>Thank you for registering at SLTrinkets.com, Please follow the link below to verify your email address. You will also need to verify that you used your Second Life User Name Inworld. Welcome <?php echo $URLE; ?><?php” ;
$headers = ‘MIME-Version: 1.0’ . “rn”;
$headers .= ‘Content-type: text/css; charset=iso-8859-1’ . “rn”;
$headers .= 'From: ’ . $from . “n”;
mail($to, $subject, $message, $headers) ;
[/php]

heres what I get

?>Thank you for registering at SLTrinkets.com, Please follow the link
 below to verify your email address. You will also need to verify that
 you used your Second Life User Name Inworld. Welcome <?php echo
 http://www.sltrinkets.com/SLTbAnK/interact/emv.php?data=241affc6-98dc-4cbc-bddd-8fdc3869906a;
 ?><?php

If anyone can help with either of these 2 problems Thanks!

echo is to send somthing to the browser and u can’t use php-code inside a string.

ur thinking far to complicated. it’s so easy:
[php]$message = "Thank you for registering at SLTrinkets.com, Please follow the link below to verify your email address. You will also need to verify that you used your Second Life User Name Inworld. Welcome " . $URLE; [/php]

about the html:

most html-emails are filtered as spam.
and i don’t think u are skilled enough yet to write multipart-emails.

Sponsor our Newsletter | Privacy Policy | Terms of Service