si ho scaricato phpmailer 5 come mi hai consigliato ma nulla
ora sto provando questo
Codice PHP:<?php
require_once("class.phpmailer.php");
$nome=$_POST['nome'];
$cognome=$_POST['cognome'];
$tua_email=$_POST['tua_email'];
$telefono=$_POST['telefono'];
$attivita=$_POST['attivita'];
$mail = new PHPMailer();
//$mail->IsSMTP(); // send via SMTP
//IsSMTP(); // send via SMTP
//$mail->SMTPAuth = true; // turn on SMTP authentication
//$mail->Username = "username@gmail.com"; // SMTP username
//$mail->Password = "password"; // SMTP password
$webmaster_email = "info@mdstudioweb.com"; //Reply to this email ID
$email="info@mdstudioweb.com"; // Recipients email ID
$name="Marco"; // Recipient's name
$mail->From = $webmaster_email;
$mail->FromName = "Webmaster";
$mail->AddAddress($email,$name);
$mail->AddAddress("$tua_email");
$mail->AddReplyTo($webmaster_email,"Webmaster");
$mail->WordWrap = 50; // set word wrap
//$mail->AddAttachment("/var/tmp/file.tar.gz"); // attachment
//$mail->AddAttachment("/tmp/image.jpg", "new.jpg"); // attachment
$mail->IsHTML(true); // send as HTML
$mail->Subject = "This is the subject";
$mail->Body = "Hi,
This is the HTML BODY "; //HTML Body
$mail->AltBody = "This is the body when user views in plain text format"; //Text Body
if(!$mail->Send())
{
echo "Mailer Error: " . $mail->ErrorInfo;
}
else
{
echo "Message has been sent";
}
?>

Rispondi quotando
