title: nodemailer multiple recipients different context
body: <p>I am trying to implement a method to send emails to multiple recipients but also I want to pass to the html template the user attribute which will have the name of the recipient. (I AM USING NODEMAILER as a nodejs module)</p>
  
  <p>My code in this stage is like this:</p>
  
  <pre><code>SellerMatched: function (fromUser, offer, cb) {
  
          var maillist  = [];
          var users = [];
  
          for (var i=0; i&lt;fromUser.length; i++)
          {
              maillist[i]=fromUser[i].email;
              users[i] = fromUser[i].Name;
          }
  
  
          maillist.toString();
          users.toString();
  
  
  
          mail.sendMail({
              from: 'Website Support &lt;help@domain.com&gt;',
              to: maillist,
              subject: 'Seller Matched',
              template: 'SellerMatch',
              context: {
                  user: users,
                  username: offer.owner.username,
                  OfferName: offer.name,
                  category: offer.category
              }
          }, cb);
      }
  </code></pre>
  
  <p>and the html have those attributes: It's something like this:</p>
  
  <pre><code>...
  
  Hi {{user}},
  
  A offer is uploaded that matched your preference. 
  Offer detail:
  Name : {{OfferName}}
  By: {{username}}
  Category: {{category}} 
  
  ....
  </code></pre>
  
  <p>This is working properly, emails are sent to the recipients but in the attribute Hi {{user}}, I want to show only the name of recipient because now it shows the array of all recipients.</p>
  
  <p>Thanks</p>