6.2.2 mail.smtp.auth
When mail.smtp.auth is set to true, it attempts to authenticate the user using the AUTH command. The default value is false.
Description
When mail.smtp.auth is set to true, it attempts to authenticate the user using the AUTH command. The default value is false.
Specifiable values
Type: Boolean
{true | false}
Examples
Properties properties = new Properties(); properties.setProperty("mail.smtp.auth", "true"); Session session = Session.getDefaultInstance(properties); Message message = new MimeMessage(session); message.setSubject(sentDate); Transport.send(message);