Can i atleast approximate the sender's location by using gmail's mailserver ip? is that possible.i am not looking for very accurate location.
On Fri, Apr 30, 2010 at 2:27 AM, Ikai L (Google) <[email protected]> wrote: > From this page: > > > http://compnetworking.about.com/od/workingwithipaddresses/qt/ipaddressemail.htm > > - Google's *Gmail* service omits the sender IP address information from > all headers. Instead, only the IP address of Gmail's mailserver is shown in > Received: from. This means it is impossible to find a sender's true IP > address in a received Gmail. > > - Microsoft's *Hotmail* service provides an extended header line called > "X-Originating-IP" that contains the sender's actual IP address. > > - Emails from *Yahoo* (if untampered) contain the sender's IP address > in the last Received: entry > > > On Thu, Apr 29, 2010 at 12:24 PM, sreenidhi b.s <[email protected]>wrote: > >> 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]<google-appengine-java%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-appengine-java?hl=en. >> > > > > -- > Ikai Lan > Developer Relations, Google App Engine > Twitter: http://twitter.com/ikai > Delicious: http://delicious.com/ikailan > > ---------------- > Google App Engine links: > Blog: http://googleappengine.blogspot.com > Twitter: http://twitter.com/app_engine > Reddit: http://www.reddit.com/r/appengine > > -- > 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]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- 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.
