Skip to main content
tclaremont
Inspiring
Jun 10, 2016 12:47 PM UTC
Question

Trouble with sending email through Office365

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 is closed to new replies. Start a new post to keep the conversation going.

4 replies

Participant
Jan 23, 2018 5:33 AM UTC

Finally figured it out:

Coldfusion Mail with Office 365 – RantFree.me

Cheers!

Translate
May 29, 2017 10:31 PM UTC

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

Translate
Participant
Nov 4, 2016 4:48 AM UTC

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.

Translate
BKBK
Community Expert
Community Expert
Jun 18, 2016 2:48 PM UTC

Did you use all of these cfmail attributes?

from=

to=

subject=

username=

password=

useTLS="yes"

Translate