Well, if that’s your real username and password, the first thing you’ll want to do is change that, as anyone else who wants to can try to get int. Doh! :-(
Second, it’s curious that cfimap would have no problem connecting but cfmail would. You’re saying it’s the same server? And were you connecting via CFIMAP using tls and/or ssl also? If not, then perhaps it’s that you need to import an SSL cert (into the JVM that you have CF using) so that CF can act as an ssl/tls client to the office365.com server. If you ARE using ssl/tls in the cfimap, with the same connection info, perhaps there’s a difference in the underlying way that cfimap vs cfmail do the ssl/tls communication. Along those lines, what version of CF is this (9? 10? 11? 2016?), and what update level? And what JVM version. All these can be seen in the CF Admin “system info” page (the “i” icon in the top right). Later versions of CF and the JVM each address various issues related to SSL (and also include more modern certs, that often avoid the need to have to import one). Let us know if this starts getting you down the road. There are more details on all the above, but I’ll hold off on the details in case you don’t need them, or this is not taking you toward a good solution. /charlie From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Brian Knott Sent: Tuesday, June 21, 2016 7:01 PM To: cfaussie@googlegroups.com Subject: [cfaussie] CFMail and outlook365 Hi Guys. Our business is moving all mail account to the cloud. outlook.office365.com I have been able to get CF, using CFIMAP, to check mail boxes and download attachments. What I can not do is send mail using the CFMail tag. Example code is below. My understanding is that the connection need to use SSL and port 587. I have set these and tried various setting, SSL on/off TLS on/off etc. Each time I get the error below. Credential make no difference, it does not even check if the user name and password are correct Anyone had experience in this area? ERROR javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? CODE <cfmail to="bkn...@jbk.com.au" from="reciverrepo...@jbk.com.au" server="smtp.office365.com" port="587" usessl="yes" useTLS = "yes" username="rrepo...@jbk.com.au" password="Jbk123" subject="test" type="html"> <html> <head> </head> <body> <h2>The Contractor data load has failed at #timeformat(now(),'hh:mm tt')# on #dateformat(now(),'ddd mmmm yyyy')#</h2> <h3>Error Details</h3> </body> </html> </cfmail> -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at https://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at https://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.