How can we set the personalName of mail recipients ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Damien_PHILIPPON
Posted On:   Monday, August 12, 2002 05:33 AM


I can't manage to set the personalName of the different recipients of an email ...


The InternetAddress class does have a personalName attribute but it doesn't work with recipients ?


Any ideas ? Thanks !

Re: How can we set the personalName of mail recipients ?

Posted By:   Gautam_Marwaha  
Posted On:   Monday, August 12, 2002 05:55 AM

InternetAddress has a constructor which takes the second arg as personal name. Or set it using InternetAddress.setPersonal(string). These surely work. Also if you create a InternetAddress with:

String str = ""Foo Bar"" ";
InternetAddress add = new InternetAddress(str);

will also work.
About | Sitemap | Contact