Page 1 of 1

email error return this > 550 line longer than 999 char..

Posted: Wed Nov 08, 2006 5:01 am
by webstyler
Hi, I send newsletter with php

all ok

but now I have received this to return path:

SMTP error from remote mail server after end of data:
host *** [***]: 550 line longer than 999 characters

??

thx

Posted: Wed Nov 08, 2006 6:25 am
by Chris Corbyn
Use wordwrap() to break long lines at 76 chars (a really safe length which will work with old mail clients and servers).

Posted: Wed Nov 08, 2006 7:28 am
by webstyler
d11wtq wrote:Use wordwrap() to break long lines at 76 chars (a really safe length which will work with old mail clients and servers).
:) k

I must use wordwrap for text and for html version of email ?

thx

Posted: Wed Nov 08, 2006 7:31 am
by Chris Corbyn
webstyler wrote:I must use wordwrap for text and for html version of email ?
You should do yes since some SMTP servers will (as you've seen) reject the message if the lines are too long since they are unable to transmit them (and the RFC disallows it). If 76 chars is too shor just specify it as 999 in wordwrap().