Ver Mensaje Individual
  #7 (permalink)  
Antiguo 06/04/2015, 07:35
Avatar de angel_xx_1990
angel_xx_1990
 
Fecha de Ingreso: junio-2013
Ubicación: Guadalajara
Mensajes: 236
Antigüedad: 10 años, 10 meses
Puntos: 0
Respuesta: Hostinguer y remitente en emails!!

Código PHP:
$nombre_origen    "REMITENTE"
$email_origen     "[email protected]"
$email_copia      "[email protected]"
$email_ocultos    "[email protected]"

$para=$_POST['email'];
 
$asunto"Su anuncio en [email protected] ";

$cuerpomsg ='(cuerpo del mensaje)';

$formato "html"


$headers  "From: $nombre_origen <$email_origen> \r\n";
$headers .= "X-Priority: 3 \r\n"
$headers .= "MIME-Version: 1.0 \r\n"
$headers .= "Content-Transfer-Encoding: 7bit \r\n"


if(
$formato == "html"
 { 
$headers .= "Content-Type: text/html; charset=iso-8859-1 \r\n";  } 
   else 
    { 
$headers .= "Content-Type: text/plain; charset=iso-8859-1 \r\n";  } 
 
if (@
mail($para$asunto$cuerpomsg$headers))  
{echo 
'<script>alert("Artículo enviado con éxito");window.location.href = "../publicar.php";</script>'; }; 



Ni idea...¿que me puede estar ocurriendo?