RE: [PHP] Cannot send a hyperlink (resent)

From: Date: Fri, 16 Nov 2007 14:58:01 +0000
Subject: RE: [PHP] Cannot send a hyperlink (resent)
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-264702@lists.php.net to get a copy of this message
2007. 11. 16, péntek keltezéssel 09.09-kor tedd ezt írta: > 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? I think there are spam filters out there which mark messages with X-Mailer: PHP as spam because many incorrectly coded php mail forms have been already abused by spammers... but also there are a lot of spam filters which mark messages without X-Mailer header as spam... so I tend to use a custom X-Mailer header for my applications, containing application name and version number and similar info greets Zoltán Németh > > Cheers, > > tedd > -- > ------- > http://sperling.com > http://ancientstones.com > http://earthstones.com >

« previous php.general (#264702) next »