I managed to do it on my own, using this code -
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
// Send a message
String msgBody = "This is just a dummy message.";
try {
MimeMessage message = new MimeMessage(session, req.getInputStream());
Address[] add = message.getFrom();
for(int i=0;i<add.length;i++)
{
log.info("FromAddress: " + add[i].toString());
}
Message msg = new MimeMessage(session);
msg.setFrom(new
InternetAddress("ad...@nttodo.appspotmail.com", "NT To Do List
Admin"));
msg.addRecipient(Message.RecipientType.TO,add[0]);
msg.setSubject("Acknowledgement of your mail to
ad...@nttodo.appspotmail.com");
msg.setText(msgBody);
Transport.send(msg);
}
catch (AddressException e)
{
log.info(e.getMessage());
}
catch (MessagingException e) {
log.info(e.getMessage());
}
Regards
Nitin
> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>
>