Código PHP :
if( $contact_name == true)algo de sintax
Este el php
Código PHP :
<?php $contact_name = $_POST['nombre']; $contact_email = $_POST['email']; $contact_subject = $_POST['asunto']; $contact_message = $_POST['mensaje']; $contact_destinatario =$_POST [[email protected]'] if( $contact_name == true) { $sender = $contact_name; $receiver = $contact_destinatario; //$client_ip = $_SERVER['REMOTE_ADDR']; $email_body = "<b>DE:</b> $contact_name <br><b>Email:</b> $contact_email <br><b>Para:</b> $receiver <br><b>Asunto:</b> $contact_subject <br><b>Mensaje:</b> <br>$contact_message <br>"; $extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion(); $extra = "From: $sender\r\n" . "Reply-To: $sender\r\n" . "X-Mailer: PHP/" . phpversion() . "\r\n"; $extra .= "Content-type: text/html; charset=UTF-8\r\n"; if( mail( $receiver, $contact_subject, $email_body, $extra ) ) { echo "Mensaje enviado"; } else { echo "Error de envío"; } } ?>Gracias de antemano