title: Swift Mailer - Can't send mail, and can't find error logs
body: <p>New to PHP and <a href="http://swiftmailer.org/" rel="noreferrer">Swiftmailer</a> and have yet to get it working. I've uploaded the /lib/ directory to a directory in the root of my shared webserver from Hostgator. I've uploaded the following inside in the directory above /lib/:</p>
  
  <pre><code>&lt;?php
          require_once 'lib/swift_required.php';
  
  $transport = Swift_SmtpTransport::newInstance('mail.****.com', 25)
      -&gt;setUsername('****@****.com')
      -&gt;setPassword('****');
  
  $mailer = Swift_Mailer::newInstance($transport);
  
  $message = Swift_Message::newInstance('Subject Here')
      -&gt;setFrom(array('****@****.com' =&gt; '****'))
      -&gt;setTo(array('****@****.com' =&gt; '****'));
  
      $message-&gt;setBody('This is the message');
  
      if (!$mailer-&gt;send($message, $errors))
      {
          echo "Error:";
          print_r($errors);
      }
  ?&gt;
  </code></pre>
  
  <p>It does not send a message, but I am also unable to view any error logs. I have error logging enabled in all of sections in my php.ini - but when I try to go to where I uploaded the .php file in a browser I get a 404 error. When I connect through ssh I have jailshell access. When I tried to go to /var/log/php-scripts.log I did not have permission. Wondering where else I could find errors for this in order to fix it?</p>