Hi Nacho,
That looks like Java, have you tried looking at the
javax.mail.internet.InternetAddress docs?
http://java.sun.com/products/javamail/javadocs/javax/mail/internet/InternetAddress.html
Robert
On Wed, Jan 12, 2011 at 18:51, nacho <[email protected]> wrote:
> I need to get the email address [email protected] but when I do:
>
> Address[] senders = message.getFrom();
> for (int i = 0; i < senders.length; i++) {
> fromEmails.add(senders[i].toString());
> }
>
> I get (for example): "Firstname Lastname <[email protected]>";
>
> I there any method that I can use to get just the mail address? ie:
> [email protected]
>
> Or any Utils class that I can use to parse the address?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" 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?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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?hl=en.