PHP邮件消息问题


PHP Mail Message issue

当我尝试像这样发送简单的电子邮件时:

$email = 'example@mail.com';
$message = 'Hello.';
$headers  = 'MIME-Version: 1.0' . "'r'n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "'r'n";
$headers .= 'From: Example - No Reply <noreply@email.com>' . "'r'n";
mail($email,'Test',$message,$headers);

它们工作得很好,但是当我试图发送更复杂的消息时,它就失败了:

$message = "<p>Thank you for registering with our system. In order to use it we need you to visit the following link:<br />
<a href='http://www.example.com/activate.php?q=$activation_link'>http://www.example.com/activate.php</a>
</p>"

我觉得这很有趣。是否有可能我的主机(页面)有某种过滤器不允许这样做?(这是荒谬的)或者这是我的错误?

好了,经过更多的测试,这一点变得非常明显。如果我排除了我的域名,我就可以发送所有的电子邮件,这很奇怪。

有可能我的主机过滤器正在拾取这个。我得看看他们到底怎么了