Im using the below code to submit form information to my email account but i also want it to send a confirmation email to the sender but its not working... can you see anything from the code that might be stopping this from sending??

$mail->IsSMTP(); // set mailer to use SMTP$mail->Host = "localhost"; // specify main and backup server or localhost$mail->SMTPAuth = true; // turn on SMTP authentication$mail->Username = "hello@frogdigital.co.uk"; // SMTP username$mail->Password = "*****"; // SMTP password//It should be same as that of the SMTP user

$redirect_url = "http://".$_SERVER['SERVER_NAME']; //Redirect URL after submit the form

$mail->IsSMTP(); // set mailer to use SMTP$mail->Host = "localhost"; // specify main and backup server or localhost$mail->SMTPAuth = false; // turn on SMTP authentication$mail->Username = "hello@frogdigital.co.uk"; // SMTP username$mail->Password = "*****"; // SMTP password//It should be same as that of the SMTP user

$redirect_url = "http://".$_SERVER['SERVER_NAME']; //Redirect URL after submit the form