Skip to main content
Inspiring
February 2, 2018
Answered

Email sending through Office365 getting marked as spam

  • February 2, 2018
  • 1 reply
  • 1572 views

In the ColdFusion admin I have mail set to send through smtp.office365.com with all their suggested settings.

I can send email using cfmail, and it goes out through their smtp, but they mark it with a spam confidence level of 5. Most services accept the mail and route it to spam/junk folders. Some are refusing and returning the emails.

The message headers say "Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=xxx@xxx.com" where xxx@xxx.com is the sending email address. Elswwehre in the headers I can see IP address of the coldfusion server, which is in the SPF record.

I have SPF set up. According to Microsoft support they say SPF and DKIM are set up correctly and it is a problem with ColdFsuion not using SPF when sending the email. This doesn't seem right to me, but I'm not sure what else to do at this point.

We ae running CF10 in Windows Server 2012 r2.

This topic has been closed for replies.
Correct answer nic_tunney

Have you tried sending multipart email with cfmail/cfmailpart so that both text and html sections exist?  So many things go into your spam score, but based on your testing above I'd try that as a starting point.  You can google for tips on lowering your spam score, and see online checkers that will help you rewrite your mail appropriately as well.

ColdFusion Help | cfmailpart

-Nic

1 reply

Inspiring
February 2, 2018

After a considerable amount of testing sending emails and using the message analyzer at Microsoft Remote Connectivity Analyzer it appears that if I used cfmail type="text" the emails are not marked as spam, but if I use type="html" then they are marked as spam.

Anyone know a way around this?

nic_tunneyCorrect answer
Inspiring
February 2, 2018

Have you tried sending multipart email with cfmail/cfmailpart so that both text and html sections exist?  So many things go into your spam score, but based on your testing above I'd try that as a starting point.  You can google for tips on lowering your spam score, and see online checkers that will help you rewrite your mail appropriately as well.

ColdFusion Help | cfmailpart

-Nic

Inspiring
February 2, 2018

"Have you tried sending multipart email with cfmail/cfmailpart so that both text and html sections exist"

I didn't even know I could do that.

I tried it and that seems to have been the issue. It's working now.

Thank you!