Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
someone wanna save my ass? HTML in email
y2kbg
New
well the email sends, and the subject comes out right, and so does the body, except the html is stripped/ not displaying
if(isset($_POST['email'])){
$to = $_POST['email'];
$subject = $_POST['fname'].' has sent you Lifes Golden Ticket';
$message = '
<html>
<head>
<title>Lifes Golden Ticket</title>
<style>
#s{
background: url(\''.$RemoteServerRoot.'emailticket.jpg\');
width: 300px;
height: 136px;
margin: 0px auto;
padding-top: 65px;
padding-bottom: 60px;
padding-left: 80px;
padding-right: 100px;
font-family: impact;
font-size: 14pt;
}
</style>
<link href="'.$RemoteServerRoot.'ticketemailstyle.css" rel="alternate stylesheet" type="text/css">
</head>
<body>
Hi '.$_POST['tname'].', '.$_POST['fname'].' has sent you Lifes Golden Ticket
<div id="s">'.$_POST['secret'].'</div><br />
If the above image is not showing up properly <a href="">Click Here</a>
Also, Visit <a href="http://www.kkkkkkkkk.com">lifesgoldenticket.com</a> to send a ticket of your own.
</body>
</html>
';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: Your Golden Ticket for Life <kkkkkkkkkkkk@kkkkkkkk.com>' . "\r\n";
if(mail($to, $subject, $message, $headers)){
echo '<br /><p>Your ePostcard has been sent!</p><p>Click <a href="epostcards.html">Here</a> to send another ePostcard.</p>';
} else{
echo '<br /><p>Your ePostcard did not send!</p><p>Click <a href="epostcards.html">Here</a> to send a ePostcard.</p>';
}
}
0
This discussion has been closed.
Comments
Indeed. And here I was going to recommend PowerMail...