title: Nginx 405 Not Allowed - PHPMAILER
body: <p>I uploaded a website with a PHPMailer v5. It works well in localhost but when I tried it online, Nginx-405-not-allowed page shows. below is my configuration for my mail function. </p>
  
  <pre><code>  require 'vendor/phpmailer/phpmailer/PHPMailerAutoload.php';
    $mail = new PHPMailer(true);
    $mail-&gt;isSMTP();
    $mail-&gt;Host = 'smtp.gmail.com';
    $mail-&gt;SMTPAuth = true;
    $mail-&gt;Username = 'myaccount@gmail.com';
    $mail-&gt;Password = 'mypassword';
    $mail-&gt;SMTPSecure = 'tls';
    $mail-&gt;Port = 587;
  </code></pre>