Jump to content

Recommended Posts

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

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">
info@msukgroup.co</span></a></p>

							</body>

</html>

 

HEADERS:

$matt = "matt@msukgroup.co";
$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 <info@msukgroup.co>' . "\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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.