Night And Day Place From Prenotazione
is_valid) && (!isset($hasError))) {
$emailTo = 'info@nightanddayplace.com'; // here you must enter the email address you want the email sent to
$City = 'From Prenotazione: ' . $formAuthor . ' | ' . $formCity; // This is how the City of the email will look like
$body = "Nome: $formAuthor \n\nCognome: $formAuthor2 \n\nCellulare: $formPhone \n\nArrivo: $formArrive \n\nPartenza: $formLeave \n\nNotti: $formNight \n\nPersone: $formPeople \n\nEmail: $formEmail \n\nContent: $formContent"; // This is the body of the email
$headers = 'From: <'.$formEmail.'>' . "\r\n" . 'Reply-To: ' . $formEmail . "\r\n" . 'Return-Path: ' . $formEmail; // Email headers
//send email
mail($emailTo, $City, $body, $headers);
// set a variable that confirms that an email has been sent
$emailSent = true;
}
// if there are errors in captcha fields set an error variable
if (!($resp->is_valid)){
$captchaErrorMsg = true;
}
}
} ?>
e-mail inviata correttamente
Ci sono errori nella compilazione. Ricontrollare e riprovare.