I have the following code:
@$fp=fopen("/home/httpd/html/files/emailsclientes.txt", "r");
if (!$fp){
echo ("No se ha podido abrir el archivo solicitado");
exit;
}
$i=0;
while (!feof($fp)) {
$mail[$i]=fgets($fp, 100);
$i++;
}
fclose($fp);
for ($j=0; $j <= count($mail); $j++) {
$mensaje = $mensaje." subscribe $mail[$j]";
}
$enviar=mail("direccion@correo.com", "corpmail@yahoo.com", $mensaje);
if (!$enviar) {
echo ("No se ha podido actualizar la lista");
exit;
}
else {
echo ("La lista se ha actualizado con exito");
echo $mensaje;
exit;
}
but when it displays the $mensaje variable it doesn't shows the \n new line it displays it all in the same line, can u help me?
thankx