How to prevent Coldfusion 6 CFMAIL from being blocked from Hotmail, Yahoo, etc

Posted on 2009-04-20
Last Modified: 2013-12-20
Basically the issue is that we cannot send domain using CFMAIL to any emails other than the domain we are sending it from. For example, if our domain is, we can send emails using CFMAIL fine to and but not to and It just doesn't get sent.

I've been reviewing information such as, but to no avail. We do have SpamAssassin enabled, would that be blocking outgoing mail?

In the code sample, the cfscript and the cfmailparam were added as of recent after doing some research, it did not work before either.

sysObj = CreateObject("java", "java.lang.System");

sysObj.setProperty("", "");



<cfmail to="Joe Schmoe <>" from="Bill Bob <>"  subject="This is a test email">

<cfmailparam name="Reply-To" value="">

this is a test email


Open in new window

Question by:427
    LVL 27

    Accepted Solution

    if you can't send mail using cfmail to ANY other domain, not just or, but ANY domain other your domain, then the problem is in your mail server config - it is probably configured NOT to relay messages. talk to your mail sysadmin about it or check docs for your mail server on how to enable relaying.

    another thing to check is: some mail servers require full authentication before you can relay messages through it. in this case you should specify valid SERVER, USERNAME and PASSWORD attributes in your <cfmail> tags.

    other than that, all i can say is that it IS a problem most of the time to send emails to Yahoo and Hotmail accounts, as well as AOL (now that's THE PITA!). i have pretty much resorted to showing all users registering on my sites a warning like "If you are signing up with a Hotmail or Yahoo email address to sign up - we can't guarantee you will receive a confirmation email from us due to overly strict spam prevention policies on those webmail services. You can try adding our email address to your address book and/or whitelist, but even then we can't guarantee you will always receive our email communications. If you have access to another email account, you are probably better off using that one to sign up...".  

    Yahoo is the second biggest PITA after AOL... You just never know when their system might decide to NOT allow an email sent by cfmail through... And it's useless to contact them about it - I have tried for a long time to get ANY info out of Yahoo about what can be done to guarantee mail delivery to accounts, but all they say is "make sure your email conforms to email standards"...

    Making sure the address cfmail is sent FROM in account's address book seems to help more than anything else...


    Author Closing Comment

    The username/password did the trick. A 7 month issue solved!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
    CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now