title: How to send mails from an array in Swift Mailer?
body: <p>I have two arrays consisting of a list emails which I need to send through swift mailer.
  Here is the format of the array</p>
  
  <pre><code>$array1 = Array ( [0] =&gt; test1@testserver1.com [1] =&gt; test2@testserver1.com)
  $array2 = Array ( [0] =&gt; test1@testserver2.com [1] =&gt; test2@testserver2.com)
  </code></pre>
  
  <p>In Swift Mailer, I tried sending mail like this</p>
  
  <pre><code>-&gt;setTo(array($array1,$array2))
  </code></pre>
  
  <p>but it is resulting in an error.</p>
  
  <p>Can some one please help me with this.</p>