contacto3

[insert_php]
$first_name = $_POST[‘first_name’];
$last_name = $_POST[‘last_name’];
$email = $_POST[’email’];
$telephone = $_POST[‘telephone’];
$comments = $_POST[‘comments’];
echo $first_name.’
‘;
echo $last_name.’
‘;
echo $email.’
‘;
echo $telephone.’
‘;
echo $comments.’
‘;

if($email <> “”){

echo ‘Se va a enviar

‘;

$email_to = “[email protected]”;

$email_subject = “Your email subject line”;

$email_message = “Form details below.\n\n”;

$email_message .= “First Name: “.$first_name.”\n”;

$email_message .= “Last Name: “.$last_name.”\n”;

$email_message .= “Email: “.$email.”\n”;

$email_message .= “Telephone: “.$telephone.”\n”;

$email_message .= “Comments: “.$comments.”\n”;

// create email headers

$headers = ‘From: ‘.$email_to.”\r\n”.’Reply-To: ‘.$email_to;

//mail(“[email protected]”,”My subject”,$email_message, $headers);
wp_mail($email_to, $email_subject, $email_message);

echo ’email_to:’.$email_to.’
‘;
echo ’email_subject:’.$email_subject.’
‘;
echo ’email_message:’.$email_message.’
‘;
echo ‘headers:’.$headers.’

‘;
echo ‘Se envio el correo
‘;

}
[/insert_php]

Golden Frog Technology Services, S.A.

Sede: San Francisco, Punta Pacífica, Calle Isaac Hanono Missiri, Torre las Américas, Torre A, Piso 12, Local 1, Ciudad de Panamá, Panamá.

[email protected]

+507 833 9729

Síguenos en nuestras Redes Sociales