Hello!
In a code like this (it works fine)
Properties props = new Properties();
props.put("mail.transfer.protocol", "smtp");
props.put("mail.smtp.host", "my_smtp_server");
props.put("mail.smtp.port", "25");
Session session = Session.getDefaultInstance(props, null);
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress("fedai@mail.ru");
msg.setReceipent(new InternetAddress("khataig@mail.ru");
msg.setSubject("A saying");
msg.setContent("Be careful what you wish for, you might get it");
Transport.send(msg);
I need to add 37 receipents to my receipents' list.
What can you advice to me to make it faster?
Maybe by creating a session object for each receipent and
letting it run into a separate
thread.
Any suggestions?
Thank you very much!