Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/04/2015, 20:10
Avatar de NueveReinas
NueveReinas
 
Fecha de Ingreso: septiembre-2013
Ubicación: No tan Buenos Aires
Mensajes: 1.101
Antigüedad: 10 años, 7 meses
Puntos: 145
Respuesta: Hostinguer y remitente en emails!!

Algo así.

Código PHP:
Ver original
  1. <?php
  2.  
  3. // Datos del email
  4.  
  5. $nombre_origen    = "REMITENTE";
  6. $email_origen     = "email@del_remitente.com";
  7. $email_copia      = "email@del_remitente.com";
  8. $email_ocultos    = "email@del_remitente.com";
  9. $email_destino    = "email@de_destino.com";
  10.  
  11. $asunto = "Asunto del email";
  12.  
  13. $mensaje = '
  14. Acá el mensaje <br>
  15. <br>
  16. Etcétera.
  17. ';
  18.  
  19. $formato = "html";
  20.  
  21. //*****************************************************************//
  22. $headers  = "From: $nombre_origen <$email_origen> \r\n";
  23. $headers .= "X-Priority: 3 \r\n";
  24. $headers .= "MIME-Version: 1.0 \r\n";
  25. $headers .= "Content-Transfer-Encoding: 7bit \r\n";
  26. //*****************************************************************//
  27.  
  28. if($formato == "html")
  29.  { $headers .= "Content-Type: text/html; charset=iso-8859-1 \r\n";  }
  30.    else
  31.     { $headers .= "Content-Type: text/plain; charset=iso-8859-1 \r\n";  }
  32.  
  33. if (@mail($email_destino, $asunto, $mensaje, $headers))  
  34. { };
  35.  
  36. ?>

Saludos.
__________________
¿Te sirvió la respuesta? Deja un +1