How to build a string as a distribution list for sending group mail ?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vengoal_Chang
Posted On:   Monday, August 13, 2001 12:46 AM

How to build a string as a distribution list for sending group mail ? I discover the RFC822 only have result example as follow:A.1.5. Address Lists Gourmets: Pompous Person , Childs@WGBH.Boston, Galloping Gourmet@ ANT.Down-Under (Australian National Television), Cheapie@Discount-Liquors;, Cruisers: Port@Portugal, Jones@SEA;, Another@Somewhere.SomeOrg This group list example points out the use of comments and the mixing of addresses and groups. the sample include the group list name, How do I send mail by distribution list ? And don't display any recipient name just only display distribution list name in TO field. Or "disunclose   More>>

How to build a string as a distribution list for sending group mail ?


I discover the RFC822 only have result example as follow:A.1.5. Address Lists

			
Gourmets: Pompous Person ,
Childs@WGBH.Boston, Galloping Gourmet@
ANT.Down-Under (Australian National Television),
Cheapie@Discount-Liquors;,
Cruisers: Port@Portugal, Jones@SEA;,
Another@Somewhere.SomeOrg

This group list example points out the use of comments and the
mixing of addresses and groups.


the sample include the group list name,
How do I send mail by distribution list ? And don't display any recipient name just only display distribution list name in TO field. Or "disunclosed" on to field.


I code the string as following:


String tostr = "TO1: username.first@company.com;, TO2: username@hotmail.com;";

InternetAddress[] address = InternetAddress.parse(tostr);



When I run it I got the invalid address.


Please help me solving it. Thanks a lot.    <<Less
About | Sitemap | Contact