}
public Mail readFromProperties(DataProperties props) {
Mail mail = new Mail();
mail.from =
new MailAddressFactory().createReversePathAlreadyVerified(props
.getString("from"));
mail.recipients =
props.getList("recipients",
new StringToElementConverter<Recipient>() {
@Override
public Recipient toElement(String s) {
return new MailAddressFactory()
.createRecipientAlreadyVerified(s);
}
});
mail.arrivalDate = props.getDate("arrivalDate");