這是我當前的代碼,但它繼續發送:(幫助時顯示HTML標籤PHP的郵件仍然viewring html標籤
<?php
$personip = $_POST['name'];
$personip = getenv("REMOTE_ADDR");
$typesup = $_POST['typesupport'];
$timesent = date("F j, Y, g:i a");
$personemail = $_POST['email'];
$message = $_POST['message'];
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$body = "<html><body>"."Support Request - iSter"."<br>"."Sent from IP:"."$personip"." "."from:"."$personemail"."At time:"."$timesent"."<br>"."Message:"."<br>"."$message";
$to = 'jon*******[email protected], [email protected]';
$subject = "Request on $typesup"." from $personemail";
$headers = 'From: [email protected]';
mail($to, $subject, $body, $headers);
?>
bleh,那真的搞垮了coe <_ <抱歉 - http://pastie.org/4782815 – user1478935