title: Swiftmailer and PHP Variables
body: <p>I have the following code:</p>
  
  <pre><code>&lt;?php
  include 'swiftmailer/lib/swift_required.php';
  //*** Create the Transport ***
  $transport = Swift_SmtpTransport::newInstance('smtp.My-Hosting', 25)
  -&gt;setUsername('MyUserName')
  -&gt;setPassword('Password');
  //*** Create the Mailer using your created Transport ***
  $mailer = Swift_Mailer::newInstance($transport);
  //*** Create a message ***
  $message = Swift_Message::newInstance('NameOfInstance')
  -&gt;setFrom(array('Support@test.com' =&gt; 'John Doe'))
  -&gt;setTo(array("John@test.com" =&gt; "John Smith"))
  -&gt;setBody('This is a test email message') ;
  //*** Send the message ***
  $result = $mailer-&gt;send($message);
  ?&gt;
  </code></pre>
  
  <p>How do I use a PHP variable (i.e. $email, $name, etc.) in the setFrom, setTo, and setBody arrays? (I do not want to type individual emails/names). </p>