Skip to main content
tclaremont
Inspiring
June 10, 2016
Question

Trouble with sending email through Office365

  • June 10, 2016
  • 4 replies
  • 5146 views

I am running CF10. New installation on Windows Server 2012R2. Intranet site.

In ColdFusion Administrator, the mail server connection verifies as successful.

Mail server is smtp.office365.com (have also tried smtp.outlook.office365.com)

Port is 587

Username and password are blank, however I have tried it with a valid username and password as well. In both cases the connection is successful.

Enable SSL is unchecked.

Enable TLS is checked.

No other combination of SSL and TLS will verify.

When I send an email using CFMAIL, the mail goes into the undeliverable folder every time without fail.

My internet searches have been futile in this case. With the prevalence of Office365 this can't be a unique scenario can it?

This topic has been closed for replies.

4 replies

Participant
January 23, 2018
May 29, 2017

Was anyone able to get this working? I'm having the exact same problem.

Participant
November 4, 2016

I too am having the exact same problem with CF2016 and Office365.  CFMail could have a bug, but I'm sure there's a setting in the exchange admin somewhere that needs to be tweaked.  I got it to work with gmail after jumping through some hoops in the settings (which leads me to believe it's a setting somewhere in the O365 admin), but only with paid business gmail.

BKBK
Community Expert
Community Expert
June 18, 2016

Did you use all of these cfmail attributes?

from=

to=

subject=

username=

password=

useTLS="yes"