Nombre: $name
" . "Telefono: $phone
" . "Email: $email

" . "Mensaje: $text
"; $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP //$mail->Host = "mail.cisternasrobles.es"; // SMTP server $mail->SMTPDebug = 0; // enables SMTP debug information (for testing) // 1 = errors and messages // 2 = messages only $mail->SMTPAuth = true; // enable SMTP authentication //$mail->SMTPSecure = "ssl"; // enable SMTP authentication $mail->Host = "mail.cisternasrobles.es"; // sets the SMTP server $mail->Port = 587; // set the SMTP port for the GMAIL server $mail->Username = "contacto@cisternasrobles.es"; // SMTP account username $mail->Password = "C0nt@ct021"; // SMTP account password $mail->SetFrom($email, $name); //$mail->AddReplyTo("name@yourdomain.com","First Last"); $mail->Subject = "Email enviado desde la pagina web"; $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $mail->MsgHTML($message); $address = "jose-carlos.robles@cisternasrobles.es"; $mail->AddAddress($address, "Jose Carlos"); if(!$mail->Send()) { echo $mail->ErrorInfo; return false; } else { return true; } } //var_dump("
", $_POST);
if($_POST["send"] == "1") $sended = sendmail();

?>

Contacto

Su mensaje se ha enviado correctamente

Datos de Contacto

Mensaje *

*Campo obligatorio.