Contact
For doubts and comments, please fill in and send the form.
Thank you.
$privatekey,
'response' => $captcha,
'remoteip' => $_SERVER['REMOTE_ADDR']
);
$curlConfig = array(
CURLOPT_URL => $url,
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => $data
);
$ch = curl_init();
curl_setopt_array($ch, $curlConfig);
$response = curl_exec($ch);
curl_close($ch);
}
$jsonResponse = json_decode($response);
if ($jsonResponse->success == "true")
{
//datos de mail
$nombre = $_POST['c_nombre'];
$apellido = $_POST['c_apellido'];
$email = $_POST['c_email'];
$telefono = $_POST['c_telefono'];
$mensaje = htmlspecialchars($_POST['c_mensaje']);
if(($nombre <> "Name*") && ($nombre_destinatario <> "Surname*")){
$contenido = "
Comments:
$mensaje"; $header = "From:".$email."\nReply-To:".$email."\n"; $header .= "X-Mailer:PHP/".phpversion()."\n"; $header .= "Mime-Version: 1.0\n"; $header .= "Content-Type: text/plain"; //$header .= "Content-type: text/html; charset=iso-8859-1"; //$header .= "Content-type: text/html; charset=utf-8"; require("includes/class.phpmailer.php"); $mail = new phpMailer(); $mail->CharSet = "utf-8"; $mail->From = $email; $mail->FromName = "$nombre $apellido"; $mail->AddAddress("claudiagarciamoritan@gmail.com"); $mail->Subject = "Claudia García Moritán (Web Contact)"; $mail->Body = $contenido; $mail->Header = $header; $mail->IsHTML(true); if($mail->Send()) { ?>
Name: | $nombre $apellido |
Phone: | $telefono |
Comments:
$mensaje"; $header = "From:".$email."\nReply-To:".$email."\n"; $header .= "X-Mailer:PHP/".phpversion()."\n"; $header .= "Mime-Version: 1.0\n"; $header .= "Content-Type: text/plain"; //$header .= "Content-type: text/html; charset=iso-8859-1"; //$header .= "Content-type: text/html; charset=utf-8"; require("includes/class.phpmailer.php"); $mail = new phpMailer(); $mail->CharSet = "utf-8"; $mail->From = $email; $mail->FromName = "$nombre $apellido"; $mail->AddAddress("claudiagarciamoritan@gmail.com"); $mail->Subject = "Claudia García Moritán (Web Contact)"; $mail->Body = $contenido; $mail->Header = $header; $mail->IsHTML(true); if($mail->Send()) { ?>
Thanks a lot for your message!
Back to the form.
Send Error, Try again please.
Back to the form.
You haven't confirm you are human, Try again please
Back to the form.