Io uso dreamweaver e prima di <?php non c'e assolutamente niente.

Per quanto riguarda i file inclusi non danno nessun problema.

Oltretutto avevo creato anche questo script e non c'e nessun errore. Come puoi vedere sono praticamente uguali. sopratutto nell'uso della funzione header

<?php
$linkrel = "../altro_email_sent.html";
$email_form = $_POST['email'];
$email_me = "##";
$messaggio = $_POST['mex'];
$name = $_POST['name'];
$telefono = $_POST['telefono'];
if ($email_form == '')
{
$name = $email_form;
}

require("class.phpmailer.php");
require("class.smtp.php");


$mail = new PHPMailer(true);
$mail->Host = "##"; // SMTP server
$mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = "##"; // sets the SMTP server
$mail->Port = 26; // set the SMTP port for the GMAIL server
$mail->Username = "$email_me"; // SMTP account username
$mail->Password = "##"; // SMTP account password
$mail->From = "$email_form";
$mail->FromName = "$name";
$mail->AddAddress("$email_me");
//$mail->AddAddress("altro@gmail.com"); // optional name

$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(true); // send as HTML

$mail->Subject = "##";
$mail->Body = "##";
$mail->AltBody = "";
$mail->Send();
header ("Location: $linkrel");
?>