Canman2005 Posted March 24, 2006 Share Posted March 24, 2006 Dear allI have the following code which generates my html email from a php page[code]$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>";[/code]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 advanceDave Link to comment https://forums.phpfreaks.com/topic/5684-phpemail/ Share on other sites More sharing options...
shocker-z Posted March 25, 2006 Share Posted March 25, 2006 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 Link to comment https://forums.phpfreaks.com/topic/5684-phpemail/#findComment-20503 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.