Hitachi

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


6.2.6 mail.smtp.sendpartial

When mail.smtp.sendpartial is set to true, and the message has an invalid address, then the mail is sent only to the valid address. In this case, SendFailedException is reported as partial failure for all the invalid addresses. If set to false, then the message is not sent to any of the addresses.

Description

If set to true and the message has both valid and invalid addresses, then the message is sent and a partial failure is reported with the SendFailedException exception. If set to false (the default value) and an invalid recipient address exists, then the message is not sent to any of the recipients.

Specifiable values

Type: Boolean

{true | false}

Default value

If the definition item is omitted

false

Example

Properties properties = new Properties();
properties.setProperty("mail.smtp.sendpartial", "true");
Session session = Session.getDefaultInstance(properties);
Message message = new MimeMessage(session);
message.setSubject(sentDate);
Transport.send(message);