im using some code to submit a form information to my email address, but as the submit buttin is pressed i want to send an automatic email to the email address supplied in the form to let them know ‘we’ll be in touch soon’, what do i need to add/edit to the below code to achieve this??
[code=php]//Your SMTP servers details
$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 = “[email protected]”; // 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->From = $mail->frogdigi; //Default From email same as smtp user
$mail->FromName = $_POST[‘fullname’];
$mail->AddAddress(“[email protected]”, “Frog Digital”); //Email address where you wish to receive/collect those emails.
$mail->WordWrap = 50; // set word wrap to 50 characters
$mail->IsHTML(true); // set email format to HTML
$mail->Subject = $_POST[‘service’];
$message = “<b>Name: </b>”.$_POST[‘fullname’].” rn <br><br><b>Email: </b>”.$_POST[’email’].” rn <br><br><b>Service: </b>”.$_POST[‘service’].” rn <br><br><b>Budget: </b>”.$_POST[‘budget’].” rn <br><br><b>Comments: </b>”.$_POST[‘comments’];
$mail->Body = $message;