I am trying to configure office365 as a SMTP mail server. I get following error

I am trying to configure office365 as a SMTP mail server. I get following error when I run the process model containing Send Email smart service, smart service becomes unattended and waits infinitely.

2015-11-12 23:53:23,223 [Appian Work Item - 3 - ProcessExec02 : UnattendedJavaActivityRequest] ERROR com.appiancorp.ap2.util.Mail - Could not send mail via smtp.office365.com:587 to Amit L <amitkumarl@incessanttechnologies.com>
2015-11-12 23:53:23,226 [Appian Work Item - 3 - ProcessExec02 : UnattendedJavaActivityRequest] WARN com.appiancorp.process.engine.UnattendedJavaActivityRequest - An error occurred while executing activity: id=536878154, classname=com.appiancorp.process.runtime.activities.SendEmailActivity. This action will be retried until it succeeds or the maximum retry period is reached. Details: error.email_failure

I have seen other post on office365 and could not find a resolution for office365. Please see attached application server logs ...

server (2).log

OriginalPostID-178577

OriginalPostID-178577

  Discussion posts and replies are publicly visible