Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/10/2012, 10:19
esystemas
 
Fecha de Ingreso: febrero-2011
Mensajes: 167
Antigüedad: 13 años, 3 meses
Puntos: 9
Respuesta: enviar txt a correo con php respetando el interlineado

Bueno lo probe pero igual ala hora de adjuntar ignora el salto de linea del txt generado

require 'lib/geekMail-1.0.php';
$geekMail = new geekMail();
$geekMail->setMailType('html');
$geekMail->from('[email protected]', 'prueba');
$geekMail->to('[email protected]');
$geekMail->subject('Reporte');
$geekMail->message('Enviando');

$geekMail->attach(nl2br('data.txt'));

if (!$geekMail->send())
{
$errors = $geekMail->getDebugger();
print_r($errors);
}