My Oracle Support Banner

ODI 12c OdiSendMail Tool Cannot Send Email Using Office365 Account, Encounters Errors: "ODI-1217, ODI-1226, ODI-1241" and "530 5.7.57 SMTP; Client was not authenticated" (Doc ID 2312440.1)

Last updated on MAY 17, 2022

Applies to:

Oracle Data Integrator - Version and later
Information in this document applies to any platform.


When using an Office365 email account with ODI 12c to send email using the OdiSendMail tool, the following error is returned:

ODI-1217: Session <PACKAGE_NAME> (17944) fails with return code 7000.
ODI-1226: Step Send Mail (Office365) fails after 1 attempt(s).
ODI-1241: Oracle Data Integrator tool execution fails.
Caused By: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM []
  at com.sun.mail.smtp.SMTPTransport.issueSendCommand(
  at com.sun.mail.smtp.SMTPTransport.mailFrom(
  at com.sun.mail.smtp.SMTPTransport.sendMessage(
  at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(
  at oracle.odi.runtime.agent.execution.SessionTask.execIntegratedFunction(
  at oracle.odi.runtime.agent.execution.SessionTask.executeOdiCommand(
  at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(
  at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(

Sample command:

OdiSendMail "" "-PORT=587" "-PROTOCOL=smtp" "-AUTH=YES" "-AUTHMECHANISMS=LOGIN" "-USER=xxxxxxx" "-PASS=xxxxxxxxx" "" "-SUBJECT=xxxx" ""




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.