RE: [PHP-ES] mail() no envia mensaje completo en HTML

From: Date: Tue, 10 May 2005 08:11:31 +0000
Subject: RE: [PHP-ES] mail() no envia mensaje completo en HTML
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-54690@lists.php.net to get a copy of this message
Hola a todos! No se si habrás resuelto tu problema. Yo tuve uno similar , con mensajes cortados y signos de admiracion "!". En mi caso las lineas del cuerpo del mensaje eran demasiado largas ( más de 900 caracteres) Deberias añadir \n antes de llegar a esa longitud Sacado de : http://www.rfc-editor.org/rfc/rfc2822.txt 2.1.1. Line Length Limits There are two limits that this standard places on the number of characters in a line. Each line of characters MUST be no more than 998 characters, and SHOULD be no more than 78 characters, excluding the CRLF. The 998 character limit is due to limitations in many implementations which send, receive, or store Internet Message Format messages that simply cannot handle more than 998 characters on a line. Receiving implementations would do well to handle an arbitrarily large number of characters in a line for robustness sake. However, there are so many implementations which (in compliance with the transport requirements of [RFC2821]) do not accept messages containing more than 1000 character including the CR and LF per line, it is important for implementations not to create such messages. The more conservative 78 character recommendation is to accommodate the many implementations of user interfaces that display these messages which may truncate, or disastrously wrap, the display of more than 78 characters per line, in spite of the fact that such implementations are non-conformant to the intent of this specification (and that of [RFC2821] if they actually cause information to be lost). Again, even though this limitation is put on messages, it is encumbant upon implementations which display messages to handle an arbitrarily large number of characters in a line (certainly at least up to the 998 character limit) for the sake of robustness. Un saludo Pako -----Mensaje original----- De: Guillermo Trejo - CI [mailto:guillermo.trejo@crearimaginando.com] Enviado el: martes, 03 de mayo de 2005 3:55 Para: php-es@lists.php.net Asunto: Re: [PHP-ES] mail() no envia mensaje completo en HTML El problema no es por ahi... no es un error de sintaxis Resulta que lo que esta cortando, esta dentro de una variable ($mensaje), pero la corta sin mas, por ejemplo: si $imagen es: "Hola mundo", solo envia: "Holundo"... misteriosamente se comio las letras intermedias aclaro, que eso solo sucede cuando la variable supera los 800 caracteres... De antemano, gracias... ---------------------------- "Juan Francisco Giordana" <juangiordana@gmail.com> wrote in message news:4272EBFB.2020100@gmail.com... > Guillermo Trejo - CI wrote: > > Saludos... > > estoy usando la funcion mail()... > > 1.- Los datos los traigo de una consulta a base de datos > > > > 2.- creo una variable ($mensaje), en la cual esta una cadena con codigo HTML > > e informacion de la base de datos > > > > 3.- Envio como html con esta linea de codigo > > mail($destino, $envia, $mensaje, "From: > > notas_mail@empresa.com\r\nContent-Type: text/html; charset=iso-8859-1"); > > > > Problema... > > El mensaje no se envia completo, sino que corta el texto traido de la base > > de datos > > El problema no es de caracteres especiales, tambien probe con texto comun > > (sin acentos, codigos u otras cosas) > > Ya probe presentar la variable ($mensaje) en la pantalla, y esta correcta > > > > ------------------ > > Alguien sabe porque? > > de antemano, Gracias > > ------- > > Guillermo Trejo > > > Te fijaste si esta realmente cortado el mensaje en el codigo fuente del > email. Quizas esta mal cerrado el HTML y el browser lo corrige, pero no > el motor que tiene tu cliente de correo para dibujar las paginas. > > Quizas estas concatenando de la forma > > $mensaje = 'texto inicial texto inicial texto inicial texto inicial '; > $mensaje .= 'siguiente texto siguiente texto siguiente'; > $mensaje .= 'siguiente texto siguiente texto siguiente'; > $mensaje .= 'siguiente texto siguiente texto siguiente'; > > y te comiste un '.' > > Pone un poco de codigo para revisar. > > Saludos > > -- > Juan Francisco Giordana > Homepage: http://www.juangiordana.com.ar > Linux registered user 294733 -- PHP Spanish Localization Talk Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general.es (#54690) next »