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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
webstyler
Forum Commoner
Posts: 85
Joined: Sat Feb 14, 2004 2:16 am

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

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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).
webstyler
Forum Commoner
Posts: 85
Joined: Sat Feb 14, 2004 2:16 am

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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().
Post Reply