Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/05/2007, 11:02
segma
 
Fecha de Ingreso: diciembre-2004
Mensajes: 296
Antigüedad: 19 años, 4 meses
Puntos: 1
Re: como poner acentos en el asunto con la función MAIL

Me autocontesto: Chaoo.


function encode_iso88591($asunto)
{
$text = '=?iso-8859-1?q?';

for( $i = 0 ; $i < strlen($string) ; $i++ )
{
$val = ord($string[$i]);
if($val > 127 or $val == 63)
{
$val = dechex($val);
$text .= '='.$val;
}
else
{
$text .= $string[$i];
}

}
$text .= '?=';

return $text;
}