title: PHPMailer not working in web page
body: <p>I'm trying to send an email with PHPMailer, but it's not working for me so far.</p>
  
  <p>On my FTP I've put 2 files, the <code>class.phpmailer.php</code> and <code>sendEMail.php</code> (this file is created by me), with this content:</p>
  
  <pre><code>&lt;?php
  require_once('/var/www/vhosts/MYWEBPAGE/httpdocs/class.phpmailer.php');
  
  $mail = new PHPMailer();
  $mail-&gt;isSMTP();
  $mail-&gt;SMTPAuth = true;
  $mail-&gt;Host = "mail.dom.com"; 
  $mail-&gt;Username = "smpt@mail.com"; 
  $mail-&gt;Password = "passwd"; 
  $mail-&gt;Port = 25; 
  
  $mail-&gt;setFrom("my@mail.com", "me", 0);
  
  $mail-&gt;addAddress("to@mail.com"); 
  
  $mail-&gt;Subject = "test"; 
  $body = "Hello World!";
  $mail-&gt;Body = $body; 
  
  if(!$mail-&gt;send()) {
  echo ("Invoice could not be send. Mailer Error: " . $mail-&gt;ErrorInfo);
  } else {
  echo "Invoice sent!";
  }
  
  ?&gt;
  </code></pre>
  
  <p>I'm missing something? When I execute this file, it shows me nothing, i mean before the if(!$mail->send()) {... It shows me every echo, but after that line, it shows me nothing.</p>