前段時(shí)間我做了一個(gè)聯(lián)系表來(lái)發(fā)送電子郵件。我有這個(gè):If ($validity !='Good@Ripsi'){ $to = "contact-us@xx-xxxx.com"; $subject = "xx xxxx new Subscriber"; $email_address = htmlentities($_GET['email_address']); $headers = "xxxxxxxxxx" . "\r\n" . mail($to,$subject,$email_address,$headers); header("Location: index.php");}這很好用。在我讀到雖然我不打算發(fā)送數(shù)以千計(jì)的 Newletters 之后,最好使用 PHPmailer,否則它可能被視為垃圾郵件并被阻止。我不太了解那些郵寄的東西。所以我讀了一個(gè)教程,它工作得很好,但有一點(diǎn):htmlentities 不再做這項(xiàng)工作,所有<br>的都在接待處被忽略。我檢查過(guò):$mail->IsHTML(true);幫助將不勝感激。
- 1 回答
- 0 關(guān)注
- 108 瀏覽
添加回答
舉報(bào)
0/150
提交
取消