Hi,

I want to use javamail for a form. Is it possible to declare two different
recipients?

Here is the code I use:

Message msg = new MimeMessage( mailSession );
    msg.setFrom( new InternetAddress( strFrom ));
    msg.setSubject( strSubject );
    msg.setContent( strAll, "text/plain" );
    msg.setRecipients( Message.RecipientType.TO, toAddresses );
    Transport.send( msg );

Thank you very much!

Best regards,

Jan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to