Jump to content


Photo

PHPemail


  • Please log in to reply
1 reply to this topic

#1 Canman2005

Canman2005
  • Members
  • PipPipPip
  • Advanced Member
  • 669 posts

Posted 24 March 2006 - 02:12 PM

Dear all

I have the following code which generates my html email from a php page


$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: php\n";
$subject = "Thank you";

$body = "<html><head><body>test</body><head><html>";

Some email software is reading these as spam. Can the above be changed easily to send the emails out as text based and not html?

Thanks in advance

Dave

#2 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 25 March 2006 - 07:57 AM

yeah just delete all the header! then it will be sent as pure txt :)

It could be the ISP/email SW realising your sending froma ndynamic IP that's classing the email as spam but worth a try using txt instead of html :0
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users