My Oracle Support Banner

OdiSendMail Tool Error "com.sun.mail.smtp.SMTPSendFailedException Must issue a STARTTLS command first" (Doc ID 2665267.1)

Last updated on MAY 07, 2020

Applies to:

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


When sending email in an ODI execution using "OdiSendMail" and a TLS-protected mail server, the following error (or similar message with the same error code) occurs:

com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. <CODE> - gsmtp
  at com.sun.mail.smtp.SMTPTransport.issueSendCommand(
  at com.sun.mail.smtp.SMTPTransport.mailFrom(


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.