javax.mail problem
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sambasivarao_damerla
Posted On:   Tuesday, March 23, 2004 10:06 PM

Hi, Iam using javax.mail to send the mails to the users. I have a data which has to send more than one email so i concatinate all email addresses to a string with a delimiter and set it to the javax.mail.Message object as follows message.addRecipient(Message.RecipientType.TO, emailReceiver); where emailReceiver contains the list of emails mentioned above but its throwing the following error Error in sending a mail as follows |javax.mail.internet.AddressException: Illegal route-addr in string ``svreddy@gcp-inc.co,somasekhar_v@hotmail.com''| can any one help me how to send the data to all the emails at a   More>>

Hi,

Iam using javax.mail to send the mails to the users. I
have a data which has to send more than one email so i
concatinate all email addresses to a string with a
delimiter and set it to the javax.mail.Message object
as follows




message.addRecipient(Message.RecipientType.TO, emailReceiver);


where emailReceiver contains the list of emails mentioned
above but its throwing the following error




Error in sending a mail as follows
|javax.mail.internet.AddressException: Illegal route-addr in string ``svreddy@gcp-inc.co,somasekhar_v@hotmail.com''|



can any one help me how to send the data to all the emails
at atime. like in yahoo or hotmails, but iam
able to send the mails individually.


Thanks in advance

sambadamerla

   <<Less
About | Sitemap | Contact