Salve, vorrei capire come inviare due mail differenti con la classe phpmailer.
di seguito un esempio del mio script:
	
	
	
		
Così riesco ad inviare la mail a me, como posso far inviare anche una mail di conferma all'utente ?
				
			di seguito un esempio del mio script:
		PHP:
	
	<?php
	require_once('class.phpmailer.php');
	include("class.smtp.php");
$mail             = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host       = "smtp.*****.com"; // SMTP server
//$mail->SMTPDebug  = 2;                     // enables SMTP debug information (for testing)
                                           // 1 = errors and messages
                                           // 2 = messages only
$mail->SMTPAuth   = true;                  // enable SMTP authentication
$mail->Host       = "smtp.*****.com"; // sets the SMTP server
$mail->Port       = 25;                    // set the SMTP port for the GMAIL server
$mail->Username   = "********"; // SMTP account username
$mail->Password   = "******";        // SMTP account password
$mail->From     = $_POST['mail'];
$mail->FromName = $_POST['mail'];
$mail->Subject    ="Richiesta Informazione su".' '.$_POST['ask'];
$body             = "<html>
						<head>
							<meta charset='utf-8' />
						</head>
						<body>
							<h1>Hai ricevuto una richietsa d'informazioni riguardo:</h1>
							<ul style='list-style:none;'>
								<li><h3><strong>".$_POST['ask']."</strong></h3></li>
								<br>
								<li><h2>Ulteriori Info: <strong>".$_POST['info']."</strong></h2></li>
								<br>
								<li><h2>Nome: <strong>".$_POST['nome']."</strong></h2></li>
								<br>
								<li><h2>Cognome: <strong>".$_POST['cognome']."</strong></h2></li>
								<br>
								<li><h2>Mail: <strong>".$_POST['mail']."</strong></h2></li>
							</ul>
						</body>
						</html>";
$mail->AltBody    = "Hai ricevuto una richietsa d'informazioni riguardo:
							<ul style='list-style:none;'>
								<li><h3><strong>".$_POST['ask']."</strong></h3></li>
								<br>
								<li><h2>Ulteriori Info: <strong>".$_POST['info']."</strong></h2></li>
								<br>
								<li><h2>Nome: <strong>".$_POST['nome']."</strong></h2></li>
								<br>
								<li><h2>Cognome: <strong>".$_POST['cognome']."</strong></h2></li>
								<br>
								<li><h2>Mail: <strong>".$_POST['mail']."</strong></h2></li>
							</ul>"; // optional, comment out and test
$mail->MsgHTML($body);
$address = "*****@*****.it";
$mail->AddAddress($address, ''.$_POST['nome'].'');
if(!$mail->Send()) {
  echo "<div class='alert alert-danger'>Errore invio mail: " . $mail->ErrorInfo."</div>";
} else {
  echo "<div class='alert alert-success'>Mail inviata Correttamente. Riceverai a breve una mail di riepilogo!</div>";
}
?>
	Così riesco ad inviare la mail a me, como posso far inviare anche una mail di conferma all'utente ?