}
}
private void setReplyTo(Mail email, Message message)
throws UnsupportedEncodingException, MessagingException {
Recipient replyToRecipient = email.getReplyTo();
if (replyToRecipient != null) {
InternetAddress replyToAddress = new InternetAddress(
replyToRecipient.getAddress(), replyToRecipient.getName());
message.setReplyTo(new Address[] { replyToAddress });
}
}