How send mail to many people in one time
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sunvalley_tan
Posted On:   Sunday, December 5, 2004 10:06 PM

How Do I send e-mail to many people in one time?

I am using the method

InternetAddress[] address = {new InternetAddress(txtTo.getText())};
mail.setRecipients(Message.RecipientType.TO, address);

Re: How send mail to many people in one time

Posted By:   Anonymous  
Posted On:   Friday, January 14, 2005 11:50 PM

Use this method.


Message msg = new MimeMessage(session);


String toAddress="mail1@host1.com;mail2@host2.com;mail3@host3.com";


StringTokenizer st=new StringTokenizer(toAddress,";");

while(st.hasMoreTokens())

{

    msg.addRecipient(Message.RecipientType.TO,new InternetAddress(st.nextToken().trim()));

}

Re: How send mail to many people in one time

Posted By:   Partha_Sarathy  
Posted On:   Thursday, January 13, 2005 02:28 AM

I would like to send mail to many people at same time ? What should I do ?

Re: How send mail to many people in one time

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, December 11, 2004 07:34 AM

How many is "many"? Don't do it, unless you are absolutely sure that they have all actively agreed to and requested your email.
About | Sitemap | Contact