Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/09/2009, 14:59
Avatar de xempro
xempro
 
Fecha de Ingreso: marzo-2007
Ubicación: Chile
Mensajes: 222
Antigüedad: 19 años, 7 meses
Puntos: 6
Respuesta: ayuda email php

Ejemplo básico....

Código PHP:
$para="[email protected]";
$de="[email protected]";
$asunto="Asunto";
$mensaje  = "Mensaje";
$cabeceras  = 'MIME-Version: 1.0' . "\r\n";
$cabeceras .= 'Content-type: text/html; charset=utf-8 format=flowed'. "\r\n";
$cabeceras .= 'Content-Transfer-Encoding: 8bit'. "\r\n";
$cabeceras .= 'From: '.$de. "\r\n";
$cabeceras .= 'X-Mailer: PHP' . phpversion();
mail($para, $asunto, $mensaje, $cabeceras);