title: Sending multiple email over javax.mail
body: <p>I am trying to send multiple mails using JAVA Mail -</p>
  
  <p>When I add a single Recipient -</p>
  
  <pre><code>message.addRecipient(Message.RecipientType.TO, new InternetAddress(“abc@xyz.com”));
  </code></pre>
  
  <p>It works fine, but not when I add multiple email addresses -</p>
  
  <p>Here is the code</p>
  
  <pre><code>message.addRecipient(Message.RecipientType.TO, new InternetAddress(“abc@xyz.com”));
  message.addRecipient(Message.RecipientType.TO, new InternetAddress(“def@xyz.com"));
  
  message.addRecipient(Message.RecipientType.CC, new InternetAddress(“ghi@xyz.com"));
  message.addRecipient(Message.RecipientType.CC, new InternetAddress(“jkl@xyz.com"));
  
  message.addRecipient(Message.RecipientType.BCC, new InternetAddress(“mno@xyz.com"));
  </code></pre>
  
  <p>The mail is sent and received, but when I check the email of <code>abc@xyz.com</code> I can't see that the email has also been sent to <code>def@xyz.com</code> or vise versa. Neither I can see CC in the list.</p>
  
  <p>Mail details from abc@xyz.com</p>
  
  <pre><code>from:   xyz@xyz.com
  to: abc@xyz.com
  date:   Thu, Sep 8, 2016 at 4:38 PM
  subject:    Test
  </code></pre>
  
  <p>Mail details from def@xyz.com</p>
  
  <pre><code>from:   xyz@xyz.com
  to: def@xyz.com
  date:   Thu, Sep 8, 2016 at 4:38 PM
  subject:    Test
  </code></pre>
  
  <p>Mail details from ghi@xyz.com</p>
  
  <pre><code>from:   xyz@xyz.com
  to: ghi@xyz.com
  date:   Thu, Sep 8, 2016 at 4:38 PM
  subject:    Test
  </code></pre>
  
  <p>Mail details from jkl@xyz.com</p>
  
  <pre><code>from:   xyz@xyz.com
  to: jkl@xyz.com
  date:   Thu, Sep 8, 2016 at 4:38 PM
  subject:    Test
  </code></pre>
  
  <p>I tried changing the logic a little, but same result -</p>
  
  <pre><code>message.addRecipients(Message.RecipientType.TO, InternetAddress.parse(“abc@xyz.com, def@xyz.com"));
  
  message.addRecipient(Message.RecipientType.CC, InternetAddress.parse(“ghi@xyz.com, jkl@xyz.com”));
  
  message.addRecipient(Message.RecipientType.BCC, InternetAddress.parse(“mno@xyz.com"));
  </code></pre>
  
  <p>I am expecting to see the details as -</p>
  
  <pre><code>from:   xyz@xyz.com
  to: abc@xyz.com, def@xyz.com
  cc: ghi@xyz.com, jkl@xyz.com
  date:   Thu, Sep 8, 2016 at 4:38 PM
  subject:    Test
  </code></pre>