title: Send Email using SMTP and php
body: <p>I have developed hotspot system using php language.
  I want to allow user to send email from my system.
  user will configure email to send email
  user must insert his (smtp server, smtp username , smtp password , from email)
  and if his entry was correct he can send email to any one 
  I used this code but it not worked </p>
  
  <pre><code>        include 'mails/class.phpmailer.php';
          date_default_timezone_set("Asia/Bangkok");
          $mail = new PHPMailer();
         $mail-&gt;IsSMTP();
          $mail-&gt;SMTPAuth =false;
         $mail-&gt;Host = 'ssl://smtps.gmail.com';
         $mail-&gt;Port = 465;
         $mail-&gt;Username = 'example@gmail.com';
         $mail-&gt;Password = 'johnsmith';
         $mail-&gt;SetFrom('starking123eng@gmail.com', 'Benim Adım');
         $mail-&gt;AddAddress("example2@gmail.com", 'Alıcının Adı');
           $mail-&gt;CharSet = 'UTF-8';
         $mail-&gt;Subject = 'Mail Başlığı';
          $msg='sdljfkjsd';
  
          $mail-&gt;MsgHTML($msg);
          $mail-&gt;Send();
  </code></pre>