MSUK1 Posted January 10, 2011 Share Posted January 10, 2011 will using HTML only in a php mail function result in my mail going into spam folders? Link to comment https://forums.phpfreaks.com/topic/224000-spam-filter/ Share on other sites More sharing options...
BlueSkyIS Posted January 10, 2011 Share Posted January 10, 2011 often. Link to comment https://forums.phpfreaks.com/topic/224000-spam-filter/#findComment-1157557 Share on other sites More sharing options...
MSUK1 Posted January 10, 2011 Author Share Posted January 10, 2011 thankyou Link to comment https://forums.phpfreaks.com/topic/224000-spam-filter/#findComment-1157575 Share on other sites More sharing options...
Philip Posted January 10, 2011 Share Posted January 10, 2011 often. Actually, I beg to differ. While plain text is less likely to end up in spam as compared to html emails... it is also dependent on how you have your html & server setup. There are many tools to check the spam 'rating' (the likelyhood it'll be placed in spam) out there. Link to comment https://forums.phpfreaks.com/topic/224000-spam-filter/#findComment-1157586 Share on other sites More sharing options...
MSUK1 Posted January 10, 2011 Author Share Posted January 10, 2011 i used one tool, that takes headers and HTML... and i got a rating of 3.4 our of 5.. see my problem, is, my isp [hosting provider] for my reseller account, have told me my dedicated IP is blacklisted, i HAVENT sent mass emails. i have a reseller account, so if i have 50 accounts and in a day prob 5 send a message from the contact form, thats not MASS mail right? anyway, here the HTML of my this should be okay? and the headers inc..? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>MSUKGroup</title> <style> p { margin-top:0; margin-bottom:4px; } </style> </head> <body style="color: #666666; font-size:small; font-family:Franklin Gothic Book"> <table style="width: 516px; height: 42px;" cellspacing="0" cellpadding="0"> <!-- MSTableType="layout" --> <tr> <td valign="top" style="height: 42px; width: 516px"> <table style="width: 500px; height: 42px;" cellspacing="0" cellpadding="0"> <!-- MSTableType="layout" --> <tr> <td valign="top" style="height: 42px; width: 500px"> <img src="http://msukgroup.co/img/logos/orange.png" width="323" height="42" /></td> </tr> </table> </td> </tr> </table> <p>Hello Admin,</p> <p>' . $name . ' has sent a message using the contact form on the site.<br> <strong>Date Message Sent: ' . $datetime . ' <br> IP Address: ' . $ip . ' </strong><br> </p> <p>Here is what we gathered from their query:</p> <table style="width: 100%" cellspacing="4" cellpadding="0"> <tr> <td style="width: 60px" align="right"><strong> Name:</strong></td> <td> ' . $name . '</td> </tr> <tr> <td style="width: 60px" align="right"><strong> Email:</strong></td> <td> ' . $email . '</td> </tr> <tr> <td style="width: 60px" align="right"><strong> Website:</strong></td> <td> ' . $web . '</td> </tr> <tr> <td style="width: 60px" align="right"><strong> Tel:</strong></td> <td> ' . $tel . '</td> </tr> <tr> <td style="width: 60px" align="right"><strong> Subject:</strong></td> <td> ' . $sub . '</td> </tr> <tr> <td style="width: 60px" align="right"><strong> Message:</strong></td> <td> ' . $message . '</td> </tr> </table> <p>He has been notified of a 24 hour wait so please respond within this time frame.</p><br /><br /> <p><img src="http://msukgroup.co/img/logo3.png" width="129" height="21" /></p> <p>Hosting - Designs - eCommerce - Solutions - Events and more...</p> <p><strong>Web:<br /> </strong><a title="MSUKGroup" href="http://www.msukgroup.co"><span style="color:#FF7800">http://www.msukgroup.co</span></a></p> <p><strong>Email:<br /> </strong><a href="http://www.msukgroup.co"><span style="color:#FF7800"> [email protected]</span></a></p> </body> </html> HEADERS: $matt = "[email protected]"; $Subject2 = Trim(stripslashes($_POST['sub'])); // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'From: MSUKGroup - Contact Us <[email protected]>' . "\r\n"; // Mail it if(mail($matt, $Subject2, $staffmail, $headers)){ print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www.msukgroup.co/Contact/?sent=successful\">"; } else { print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www.msukgroup.co/Contact/?sent=error\">"; } Link to comment https://forums.phpfreaks.com/topic/224000-spam-filter/#findComment-1157652 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.