Hitachi

Hitachi Application Server V10 Definition Reference Guide (For UNIX® Systems)


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}

Default value

If the definition item is omitted

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);