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

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 http://www.foo.com, we can send emails using CFMAIL fine to bill@foo.com and bob@foo.com but not to bill@yahoo.com and bob@hotmail.com. It just doesn't get sent.

I've been reviewing information such as http://www.carehart.org/blog/client/index.cfm/2008/4/8/cfmail_messageid_solution_for_CF6and7, 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.
<cfscript>
sysObj = CreateObject("java", "java.lang.System");
sysObj.setProperty("mail.host", "mail.mailserver.com");
writeOutput(sysObj.getProperty("mail.host"));
</cfscript>
 
<cfmail to="Joe Schmoe <joe@yahoo.com>" from="Bill Bob <bill@foo.com>"  subject="This is a test email">
<cfmailparam name="Reply-To" value="bill@foo.com">
this is a test email
</cfmail>

Open in new window

427Asked:
Who is Participating?
 
azadisaryevCommented:
if you can't send mail using cfmail to ANY other domain, not just yahoo.com or hotmail.com, 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 xxx@xxxx.xxx 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 @yahoo.com accounts, but all they say is "make sure your email conforms to email standards"...

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

Azadi
0
 
427Author Commented:
The username/password did the trick. A 7 month issue solved!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.