Posted By:
gurpreet_ahluwalia
Posted On:
Wednesday, April 24, 2002 04:25 AM
Actually i just want to extract the name of the sender from his/her address.... i tried ((InternetAddress)currentMessage.getFrom()[0]).getPersonal(); but this returns me "null"... i have also tried currentMessage().getFrom()[0].toString().. but no use... what i think there is some problem while i send the mail.. String from=user+"@"+host; msg.setFrom(new InternetAddress(from)); by doing this it always return null while trying to get Personal()... is there anything else does one has to put in while sending the mails so that the sender name can be extracted fro
More>>
Actually i just want to extract the name of the sender from his/her address....
i tried ((InternetAddress)currentMessage.getFrom()[0]).getPersonal();
but this returns me "null"...
i have also tried currentMessage().getFrom()[0].toString()..
but no use...
what i think there is some problem while i send the mail..
String from=user+"@"+host;
msg.setFrom(new InternetAddress(from));
by doing this it always return null while trying to get Personal()...
is there anything else does one has to put in while sending the mails so that the sender name can be extracted from the mail address
plz help me....
<<Less