Rob Gonda's Blog

Stop cfmail messages being flagged as spam

This is being an issue for me for a while: it seems like all cfmail emails are being caught as spam. Perhaps not by bldns, but outlook for example.

I found this post a few months ago that I think I should share.

In summary, do the following:

1) Change the cfmail from atrribute to '"#mailoutSender#" <#mailoutSenderEmail#>'
Apparently this makes the sender look more like a real account.

2) Add headers that cfmail doesn't include by default:
•    <cfmailparam name="Message-Id" value="<#createUUID()#@yourdomain.com>">
•    <cfmailparam name="Reply-To" value="#get_mailout.mailoutSenderEmail#">
•    <cfmailparam name="MIME-Version" value="1.0">

For more info, check out the original post.

TrackBacks
There are no trackbacks for this entry.

Trackback URL for this entry:
http://www.robgonda.com/blog/trackback.cfm?4CE8ABF9-3048-7431-E4179367B9F48109

Comments
Thanks for the link; I think we are facing some sorta similar situation too.
# Posted By Brajeshwar | 2/9/06 1:02 AM
Hi,

I think these options are available in CFMAIL tag.
Message-Id is also within the header of mail, so
<cfmailparam name="Message-Id" value="<#createUUID()#@yourdomain.com>">
doest not change in the mail header, its always from coldfusion generate message-id in header.

I tried this on CFMX7.
# Posted By sana | 2/9/06 4:20 AM
this is not working:

<cfmailparam name="Message-Id" value="<#createUUID()#@yourdomain.com>">

I still get something like this on a received message:
Message-ID: <10159889.1139592493827.JavaMail.Administrator@MY_SERVER_NAME>

Plus adding reply-to, and other stuff did not change spam rating on my mail server (godaddy.com)
# Posted By Amir Far | 2/10/06 12:31 PM
Hey Amir, I just started using Godaddy's CFMX hosting - but I cant get the CFMAIL tag to send out any emails - it does not throw an error - but I am not getting any emails...

If you or someone is using CFMAIL in conjunction with a godaddy shared hosting - please shed some light...

Thanks

S
# Posted By Sree | 1/8/07 11:28 PM
Even I'm not able to send out emails using cfmail tag on GoDaddy's server.

I guess they have done something to stop mails sent from coldfusion.

My smtp server is smtpout.secureserver.net
and port 80 - as mentioned in Outlook setup guide at godaddy's support site
I'm passing valid username and password.
# Posted By S G | 3/14/07 8:32 AM
i am also not able to cfmail using godaddy... did u guys find a solution???
# Posted By harrybrown | 11/19/08 10:43 PM
I just got it working by changing the default port to 80. You can find my test code that worked below: Make sure to change from,to,username,password,Reply-To to match your values.

<CFMAIL
   from="user@mydomain.com"
   to="user@hotmail.com"
   server="smtpout.secureserver.net"
   username="godaddyHosedEmailAddress"
   password="password"
   type="html"
   subject="User Registered"
   port="80">
      <cfmailparam name="Message-Id" value="<#createUUID()#@mydomain.com>">
      <cfmailparam name="Reply-To" value="user@mydomain.com">
      <cfmailparam name="MIME-Version" value="1.0">

   <H1> Test Email</H1>
</CFMAIL>
# Posted By billfusion | 12/6/08 1:53 PM
This blog is running version 5.9.003. Contact Blog Owner