SilentQ-noob- Posted January 11, 2008 Share Posted January 11, 2008 Hi, This is the code I am using to send mail, and it does avoid the spam filter in Gmail, but shows the header info. <? $from = $from_name." <".$from_email.">"; ini_set("sendmail_from",$from); $headers = $from."\n". "Content-Type: text/html; format=flowed\n". "MIME-Version: 1.0\n". "Content-Transfer-Encoding: 8bit\n". "X-Mailer: PHP\n"; mail($to,$subject,$message,$headers); ?> SO the message appears in inbox, it shows the from name and from email, except with this string showing "Content-Type: text/html; format=flowed\n". "MIME-Version: 1.0\n". "Content-Transfer-Encoding: 8bit\n". "X-Mailer: PHP\n" as well as HTML elements however when I have it like this: <? $headers = "From: ".$from_name." <".$fromaddress.">"."\n". "Content-Type: text/html; format=flowed\n". "MIME-Version: 1.0\n". "Content-Transfer-Encoding: 8bit\n". "X-Mailer: PHP\n"; mail($to,$subject,$message,$headers); ?> The message appears in spam folder, BUT the html elements dont show, which is what I want. so my question is how do I get the message to appear in the inbox, and not showing the various html tags, Thanks in advance! silentQ Link to comment https://forums.phpfreaks.com/topic/85615-php-mail-and-gmail-avoiding-spam/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.