Re: Cannot send a hyperlink (resent)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I personally think many, many mail servers will block any mail with X-Mailer containing PHP. Purely because there are an insane number of chances that its going to be spam.

This is purely based on my opinion though, I'd expect others on the list to share it or be similar in viewpoint though.

I'd personally not use that header. That is of course just my two cents though!

Scott.

tedd wrote:
At 7:29 PM +0100 11/15/07, Per Jessen wrote:
Brad wrote:

 Why is php refusing to parse as html?

Here your code cut down to what you need:

$headers  = "From: \"".$fromname."\" <".$fromaddress.">".$eol;
$headers .= "X-Mailer: PHP ".phpversion().$eol;
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
$headers .= "Content-Transfer-Encoding: 8bit".$eol;

$body = "<a href=\"http://www.zoneofsuccessclub.com\";>link </a>\n";

mail($email, $subject, $body, $headers);

I've been told that using:

$headers .= "X-Mailer: PHP ".phpversion().$eol;

is a good way to get stuck in a spam filter -- what do you think?

Cheers,

tedd

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux