title: Fatal error: Call to undefined method PHPMailer::IsSMTP() in /path/ on line 39
body: <p>I have a simple Mail post script with Phpmailer Master that i downloaded from github.</p>
  
  <p>i have a fatal error on my script. But i cant find the solution. I googled but i didnt find any source for this error.</p>
  
  <p>My script looks like this;</p>
  
  <pre><code>&lt;?php require_once("ayarlar.php"); ?&gt;
  &lt;?php
  if(($_POST["kullanici"]==$kullanici)and(isset($_POST)))  // Authetnticating Admin E-Mail Address
  {
  /* Şifremi Unuttum Mail Gövdesi */
  $ad="Company Name";
  $mesaj ="
  &lt;style type='text/css'&gt;
      body{
          font-family:'Verdana', Geneva, sans-serif;
          font-size:10px;
          }
      table{
          font-size:14px;
          }
  &lt;/style&gt;
  &lt;h2&gt;ADMIN PASSWORD&lt;/h2&gt;
  &lt;hr&gt;
  &lt;table style='width: 100%;'&gt;
    &lt;tr style='width: 100%;'&gt;
      &lt;td valign='middle' style='height:30px;width:50%;'&gt;KULLANICI ADI: $kullanici&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr style='width: 100%;'&gt;
      &lt;td valign='middle' style='height:30px;width:50%;'&gt;ŞİFRE: $parola&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr style='width: 100%;'&gt;
      &lt;td valign='middle' style='height:30px;width:50%;'&gt;Lütfen Bu Epostayı Güvenli Bir Yerde Saklayın ve/veya Yazdırın&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;";
  /* Şifremi Unuttum Mail Gövdesi */
  /* Php Mailer Class Mail Göndermek İçin */
  require_once("../inc/phpmailer/class.phpmailer.php");
  $mail = new PHPMailer();
  $mail-&gt;CharSet  = "UTF-8";
  $mail-&gt;AddAddress   ("someone@example.com","Company Name");
  $mail-&gt;Subject      = "ADMIN PASSWORD";
  $mail-&gt;Body         = "$mesaj";
  $mail-&gt;Port     = 26;
  $mail-&gt;IsSMTP();
  $mail-&gt;Host         = "mail.example.com";
  $mail-&gt;SMTPAuth     = true;
  $mail-&gt;Username     = "someone@example.com";
  $mail-&gt;Password     = "password";
  $mail-&gt;IsHTML(true);
  $mail-&gt;From         = $kullanici;
  $mail-&gt;FromName     = $ad;
  $mail-&gt;Send();
  /* Php Mailer Class Mail Göndermek İçin */
  echo "&lt;script&gt;
      alert('Şifreniz Başarılı Bir Şekilde Eposta Adresinize Ulaştırılmıştır');
      window.location.href='http://www.example.com/admin-password';
      &lt;/script&gt;";
  }
  else
  {
  echo "&lt;script&gt;
      alert('Hatalı Eposta Adresi');
      window.location.href='javascript:history.back()';
      &lt;/script&gt;";
      exit();
  }
  ?&gt;
  </code></pre>
  
  <p>And i got following error:</p>
  
  <p>Fatal error: Call to undefined method PHPMailer::IsSMTP() in /path/ on line 39</p>
  
  <p>39 Line: $mail->IsSMTP();</p>
  
  <p>Any suggestions?
  Thanks For Helps.</p>