Hi, use something like:
mail.getMessage().getFrom()[0].toString(); Have a look at the javamail apidocs for more details.. Bye, Norman 2010/7/21 冉兵 <[email protected]>: > Hi, > > In a matcher I'm writing, I need to extract the name part of an email sender > as the "My Name" part as in a sender address "My Name"<me @ a. com > > > I tried the sender but the name part is not there. Where shall I go for it? > > Thanks > > Bing > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
