Currently my coding does a post command to PHP which pushes the data to an e-mail. I'm looking to find a way to redirect afterward the server has sent the e-mail to a URL.
<?php
$email_from = 'my@e-mail.co.uk';
$email_subject = "New Form submission";
$email_body = "You have received a new insurance enquiry from $firstname $lastname $gender born on $dobday $dobmonth $dobyear $smoker is after $insurtype
They want to cover $cover,000 for $years years for $meandpartner
Contact information:
Mobile: $mobile
Telephone: $landline
E-mail: $email
Street: $street
City: $city
Postcode: $postcode
Partner details:
$pfirstname
$plastname
$pgender
$pdobday $pdobmonth $pdobyear
$psmoker
" ?>
<?php
$to = "my@email.co.uk";
$headers = "From: $email_from \r\n";
$headers .= "Reply-To: my@email.co.uk";
mail($to,$email_subject,$email_body,$headers);
?>