6.2.4 mail.smtp.ehlo
When mail.smtp.ehlo is set to false, it does not attempt to logon with the EHLO command.
Description
When mail.smtp.ehlo is set to false, it does not attempt to logon with the EHLO command. The default value is true. Normally failure of the EHLO command will fallback to the HELO command. This property exists only for the servers where the EHLO command does not fail completely or the EHLO command is not implemented correctly.
Specifiable values
Type: Boolean
{true | false}
Examples
Properties properties = new Properties(); properties.setProperty("mail.smtp.ehlo", "false"); Session session = Session.getDefaultInstance(properties); Message message = new MimeMessage(session); message.setSubject(sentDate); Transport.send(message);