title: Sending email to multiple Recipients with swiftmailer
body: <p>I am trying to use swiftmailer in my project so that I can send html newsletter to multiple users. I have searched thoroughly but all i got never worked for me. I want to paste more than one recipient in the form input field seperated by comma and send the html email to them.
  I set the recipients to a variable<code>($recipients_emails)</code> and pass it to setTo() method in the sending code, same with the <code>html_email</code>. </p>
  
  <p><strong>Questions are:</strong>
  Q1 How do i send to more than one recipient from the recipient input field.</p>
  
  <p>I tried this:</p>
  
  <pre><code>if (isset($_POST['recipients_emails'])) {
      $recipients_emails  = array($_POST['recipients_emails'] );
      $recipients_emails= implode(',',$recipients_emails);
  }
  </code></pre>
  
  <p>Q2 How do I make the Html within heredoc tag. when i tried concatenating like this <code>-&gt;setBody('&lt;&lt;&lt;EOT'.$html_email.'EOT;', 'text/html');</code> , my message would appears with the heredoc tag.</p>
  
  <pre><code>if (isset($_POST['html_email'])) {
      $html_email = $_POST['html_email'];
  }
  </code></pre>
  
  <p>How do I have input from <code>$_POST['html_email'];</code> to be within  EOT  tag;</p>
  
  <p>this in part of swiftmailer sending script ;</p>
  
  <pre><code>$message = Swift_Message::newInstance()
          -&gt;setSubject($subject)
          -&gt;setFrom($from)
          -&gt;setTo($recipients_emails)
          -&gt;setBody($html_email, 'text/html');
  </code></pre>
  
  <p>Nota bene : Am still learning these things.</p>