Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/10/2012, 10:26
Avatar de Eleazan
Eleazan
 
Fecha de Ingreso: abril-2008
Ubicación: Ibiza
Mensajes: 1.879
Antigüedad: 16 años
Puntos: 326
Respuesta: enviar txt a correo con php respetando el interlineado

Código PHP:
$geekMail->attach(nl2br('data.txt')); 
Ehm... ahí, primero hace nl2br sobre 'data.txt' (un string!), y después un attach de ese string (y ya la funcion attach buscará el archivo 'data.txt'...)

Asi, ahí da igual q pongas o no el nl2br, q no tendrá ningún efecto ;)
__________________
>> Eleazan's Source
>> @Eleazan