i used getheader() function on message and all i could gather is smtp id but
not the sender's ip address.please help me.here is the code sample.thank
you.
MimeMessage message=new MimeMessage(session,req.getInputStream());

String mailSubject=message.getSubject();
Address[] sender=message.getFrom();
Address[] receiver=message.getAllRecipients();
Date date=message.getSentDate();
Header head = null;
/*Enumeration headers = message.getAllHeaderLines();
         String headerinfo="";
         while ( headers.hasMoreElements( ) ){
             head = (Header) headers.nextElement( );
             //out.println("<li>" + head.getName( ) + ": " + head.getValue(
)+ "</li>");
             headerinfo=" "+head.getName()+" "+head.getValue();
         }*/
String headerinfo=message.getHeader("Received"," ");
_log.log(Level.WARNING,headerinfo);

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to