![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
31/08/2017, 10:07
|
| | Fecha de Ingreso: marzo-2016
Mensajes: 6
Antigüedad: 8 años, 10 meses Puntos: 0 | |
mail no funciona Hola, tengo este código pero me da error, ¿Algun consejo?
<?php
if(isset($_POST['submitcontact']))
{
$name=$_POST['name'];
$email=$_POST['email'];
$subject=$_POST['subject'];
$message=$_POST['message'];
$to = $email_SExp;
$message = " Nombre: " . $name ."\r\n Email: " . $email . "\r\n Mensaje:\r\n" . $message;
$from = $web_SExp;
$headers = "From:" . $from . "\r\n";
$headers .= "Content-type: text/plain; charset=UTF-8" . "\r\n";
if(@mail($to,$subject,$message,$headers))
{
$text = "<span style='color:blue; font-size: 35px; line-height: 40px; margin: 10px;'>Tu mensaje ha sido enviado !</span>";
}
}
?> |