试图将HTML放入电子邮件但它不起作用?

时间:2014-08-12 17:06:37

标签: php

        $body = "<p style=\"text-align:center;\"><img src=\"http://www.codefundamentals.com/images/logo.gif\" /></p><br /><p>CodeFundamentals.com has posted a new article titled: <a href=\"http://www.codefundamentals.com/blog/ " . $articleURL . "\">".$articleTitle."</a>.</p><br /><br />You are recieving this e-mail because you subscribed to our newsletter. To unsubscribe, please <a href=\"http://www.codefundamentals.com/unsubscribe.php\">click here</a> and fill out the form.</p>";

如果我只是执行<img>然后是一些基本文本,那么它就会发送,所以我知道HTML正在被接受。我逃避字符错了吗?

0 个答案:

没有答案