title: Contact script doesn't work
body: <p>I'm creating my website and I have problem with my contact form. I've found contact script in PHP and I try to configure it. When I sent form the page is loading for a long time, and then nothing was happening - mail didn't delivery and didn't show any error. Have you any suggest? Below my code</p>
  
  <pre><code>&lt;form action="sendmail.php" method="post"&gt;
              &lt;input class="cntct" name="name" type="text" placeholder="Imię i nazwisko" /&gt;
              &lt;input class="cntct" name="name_c" type="text" placeholder="Imię dziecka" /&gt;
              &lt;input class="cntct" name="phone" type="tel" placeholder="Telefon kontaktowy" /&gt;
              &lt;input class="cntct" name="mail" type="email" placeholder="Adres e-mail" /&gt;
              &lt;textarea name="text" placeholder="Treść wiadomości"&gt;&lt;/textarea&gt;
              &lt;input type="submit" name="submit" id="submit" value="Wyślij!" /&gt;
  &lt;/form&gt;
  
  &lt;?php
  
  
  
  require 'PHPMailerAutoload.php';
  $name=strval($_POST['name']);
  $name_c=strval($_POST['name_c']);
  $tresc=strval($_POST['text']);
  $telefon=strval($_POST['phone']);
  $email=strval($_POST['mail']);
  
  $mail = new PHPMailer;
  
  $mail-&gt;SMTPDebug = 0;                               // Enable verbose debug output
  
  $mail-&gt;isSMTP();                                      // Set mailer to use SMTP
  $mail-&gt;Host = 'serwer1628804.home.pl';  // Specify main and backup SMTP servers
  $mail-&gt;SMTPAuth = true;                               // Enable SMTP authentication
  $mail-&gt;Username = 'kontakt@yyy.pl';                 // SMTP username
  $mail-&gt;Password = '*****';                           // SMTP password
  $mail-&gt;SMTPSecure = 'ssl';                            // Enable TLS encryption, `ssl` also accepted
  $mail-&gt;Port = 465;                                    // TCP port to connect to
  $mail-&gt;CharSet = 'UTF-8';
  $mail-&gt;setFrom('kontakt@yyy.pl', 'Formularz kontaktowy');
  // $mail-&gt;addAddress('kontakt@yyy..pl', 'Joe User');     // Add a recipient
  $mail-&gt;addAddress('kontakt.p@gmail.com');               // Name is optional
  
  // $mail-&gt;addReplyTo('info@example.com', 'Information');
  // $mail-&gt;addCC('cc@example.com');
  // $mail-&gt;addBCC('bcc@example.com');
  //
  // $mail-&gt;addAttachment('/var/tmp/file.tar.gz');         // Add attachments
  // $mail-&gt;addAttachment('/tmp/image.jpg', 'new.jpg');    // Optional name
  $mail-&gt;isHTML(true);                                  // Set email format to HTML
  
  $mail-&gt;Subject = 'Kontakt '.$name;
  $mail-&gt;Body    = '&lt;h2&gt;Kontakt: '.$name.'&lt;/h2&gt;&lt;p&gt;'.$tresc.'&lt;/p&gt;&lt;ul&gt;&lt;li&gt;'.$name_c.'&lt;/li&gt;&lt;li&gt;'.$telefon.'&lt;/li&gt;&lt;li&gt;'.$email."&lt;/li&gt;&lt;/ul&gt;";
  
  if(!$mail-&gt;send()) {
      echo 'Wiadomość nie mogła zostać przesłana Emotikon frown.';
      echo 'Błąd: ' . $mail-&gt;ErrorInfo;
  } else {
      echo 'Wysłano Emotikon smile ';
  }
  
  ?&gt;
  </code></pre>