if (isset($_POST["txtNome"]) && ($_POST["txtMessaggio"] != "")) {
$txtNome = $_POST["txtNome"];
$txtCognome = $_POST["txtCognome"];
$txtAzienda = $_POST["txtAzienda"];
$txtEmail = $_POST["txtEmail"];
$txtMessaggio = $_POST["txtMessaggio"];
$testoMail = "";
$testoMail .= "autore: " . $txtNome . " " . $txtCognome . "\n";
$testoMail .= "e-mail: " . $txtEmail . "\n";
$testoMail .= "azienda: " . $txtAzienda . "\n\n";
$testoMail .= $txtMessaggio;
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->From = "sito@outingitaly.it"; // mittente
// $mail->AddAddress("info@outingitaly.it"); // destinatario
$mail->AddAddress("info@wetoo.it"); // destinatario
$mail->Subject = "[www.outingitaly.it] Mail da " . $txtEmail;
$mail->Body = $testoMail;
$mail->WordWrap = 50;
if ($mail->Send()) {
?>
Grazie per il tuo interesse: il messaggio è stato spedito!
} else {
?>
Siamo spiacenti, ma un problema tecnico ha impedito al tuo messaggio di essere recapitato.
Scusandoci per l'inconveniente, ti invitiamo a riprovare più tardi.
}
} else {
?>
} ?>