//System.out.println("Message is:"+message.getPayload());
final MessageHeaders messageHeaders = message.getHeaders();
messageHeaders.get(MailHeaders.TO);
final String content = message.getPayload().toString();
MimeMessagePreparator preparator = new MimeMessagePreparator() {
public void prepare(MimeMessage mimeMessage)
throws MessagingException {
MimeMessageHelper message = new MimeMessageHelper(mimeMessage);
message.setSubject("Some new subject");
message.setTo(messageHeaders.get(MailHeaders.TO).toString().split(";"));