8 Replies Latest reply on Apr 18, 2010 12:52 AM by Adam Cameron.

    Cannot connect to Microsoft Online Hosted Exchange with CFMAIL

    Ben_Shichman

      Hi

       

      I work with a non-profit in northern California that facilitates high-tech internships for teachers.

       

      While their site host is Hostmysite.com - they recently moved their email services to Microsoft Online's hosted Exchange services.  As such, I need to update their code to send email notifications off of their new exchange servers so email dont appear as spoofs.  '

       

      Microsoft provides the following settings:

       

       

      http://blogs.technet.com/msonline/archive/2009/09/02/using-smtp-relay-with-exchange-online .aspx

       

       

      I've set my cfmail tag as such - however, regardless if I use useTLS, useSSL or both, the emails are not sent.  A quick review of the CF mail log file reveals:

       

       

      "Error","scheduler-1","04/14/10","14:47:00",,"Could not connect to SMTP host: smtp.mail.microsoftonline.com, port: 587"

       

      <cfmail server="smtp.mail.microsoftonline.com"

      username="web@***.org"

      password="********"

      useTLS="true"

      port="587"

      subject="Hello World"

      to="****@yahoo.com"

      from="web@***.org">

       

      This is my test email - did it work?

       

      </cfmail>

       

       

      Any ideas?  Your help is appreciated!

       

      Ben