what is reasor for getting the javax.servlet.ServletException: com/sun/mail/util/SharedByteArrayInputStream
0 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Thursday, August 31, 2006 03:21 AM

Authenticator auth =(Authenticator)new sendmail();

Session sess = Session.getInstance(props,auth);
Message msg = new MimeMessage(sess);
InternetAddress addressFrom = new InternetAddress(emailfrom);
InternetAddress[] addressTo = new InternetAddress[recipients.length];
for (int i = 0; i < recipients.length; i++)
addressTo[i] = new InternetAddress(recipients[i]);
msg.setRecipients(Message.RecipientType.TO, addressTo);
i am setting class path of j2ee.jar,mail.jar,activation.jar.
(but this code fine in netbeans IDE)

About | Sitemap | Contact