Brian,

If you are sending ONLY text then change the type attribute in the CFMAIL tag 
from html to text or set it to text explicitly. I think at this point using the 
CFMAILPART type text then become redundant.  CFMAILPART is great for sending 
multi-part emails, but you are sending a single part email at the moment.

As for the issue of increased SPAM scores when HTML is included, one of the 
reasons this may happen is that SPAM filters will compare the text portion to 
the HTML portion (By stripping HTML I presume) and see if they are 
significantly different. This is where my textMessage() function comes in 
handy. It generates the text portion from the HTML portion in what seems to be 
the same fashion that SPAM filters check to see if the two sections match.  
Thus a low SPAM score. The reason SPAM filters do this check is because a lot 
of SPAM is multi-part. The HTML making use of images to show the real message, 
while the text portion is some auto-generated text that seems plausible for a 
non-SPAM email. This was done by spammers to try to get past the text analysis 
of emails. So now SPAM filters compare the two parts.  

Also, the simpler the html the better. Less images (or none) makes many SPAM 
filters happy.

What SPAM scores were you seeing in the multi-part messages?  


Wil Genovese
Sr. Web Application Developer/
Systems Administrator

Wil Genovese Consulting
[email protected]
www.trunkful.com

On Jan 26, 2011, at 5:04 PM, Brian Cain wrote:

> 
> Thanks for the info Wil.  I did read your blog, and my original design was 
> coded exactly the way you specified using 2 mail parts (text and HTML) and 
> specifying the type as HTML in the cfmail tag itself as seen below.
> 
> 
> <cfmail to="#Candidates.EmailAddress#" from="#SysSettings.Postmaster#"
>       subject="#Expired#" 
>       server="#SysSettings.MailServer#">
> <CFMAILPART type="text">
> Your Login ID: #Candidates.EmailAddress#
> #Candidates.CandidateID#
> 
> #ExpiredContent.Text#
> </CFMAILPART>
> 
> <CFMAILPART type="HTML">
> #ExpiredContent.HTML#
> <p>Your Login ID is #Candidates.EmailAddress#</p>
> </CFMAILPART>
> </cfmail>
> 
> I was noticing that the HTML part of the message was raising my SPAM score.  
> Many of the messages we send are purely informational and do not require the 
> niceties of HTML  display formatting so in an effort to reduce the SPAM score 
> I simply removed the HTML part of the cfmailpart tag, leaving the text 
> cfmailpart in place.  This is when my problem started.  It appears as though 
> including a cfmailpart of type text without an HTML counterpart was causing 
> the problem.  I am sad to say that the only fix I could find was to do 
> something close to your example of the improper use of the cfmail tag.  If I 
> simply include the mail message with no cfmailpart tags and do not specify 
> type="HTML" in the cfmail tag my message is displayed correctly, or at least 
> as I intended it to.
> 
> I do like your use of the textMessage function.  I may incorporate something 
> like that in my system.  I will definitely help cut down on redundant coding.
> 
> Thanks,
> Brian Cain 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341471
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to