|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
On Thu, 26 Jul 2007 05:46:02 +0200, Jean Pierre Daviau <Once@WasEno.ugh>
wrote: > I use the mail function but my message ( 3Ko ) is truncated > randomly in between the === lines. > It printed perfectly in a file. I used the mail method for > sending 2Ko text files without any problem. > > I tried other classes found on the net and ended with the same > problem. > > ----------------- ENVIRONNEMENT par PHP ------------------------ <snip> > ================================================== ============== > about here ===== > JIKESPATH = .;""C:\Program Files\Java\jre1.5.0_11""\lib\rt.jar; If it print ok in a file, I assume the srting is OK. What are the mail headers? Not for instance a badly formatted mime-type/boundary? -- Rik Wasmus |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET=ISO-8859-1 Content-transfer-encoding: 7BIT Sun-Java-System-SMTP-Warning: Lines longer than SMTP allows found and truncated. I used: $message = wordwrap($message, 70); mail('Moi <6eWmebq@etc>', $subject, $message, $headers); -- "Rik" <luiheidsgoeroe@hotmail.com> a écrit dans le message de news: op.tv4me5vnqnv3q9@metallium... On Fri, 27 Jul 2007 14:44:22 +0200, Jean Pierre Daviau <Once@WasEno.ugh> wrote: > $headers = 'MIME-Version: 1.0' . "\r\n"; > $headers .= 'Content-type: text/html; charset=iso-8859-1' > . > "\r\n"; > $headers .= 'From: Jean Pierre Daviau <6eWmebq@etc>' . > "\r\n"; Why these header? AFAIK, this is just a plain text message. Remove those MIME & Content-Type headers, and if it still doesn't work, come back with the actual headers when you receive the truncated mail, not the ones you set/try to set. -- Rik Wasmus |
|
![]() |
| Outils de la discussion | |
|
|