Hello,

On 08/19/2004 01:33 PM, Ufuk M. Fakioglu wrote:
I am using mail() with php 4.3.8 on FreeBSD 4.10 to send bulk mail.
Although I use \r\n in the header parameters, some mail servers
respond with "Nonstandard SMTP line terminator."

If you are doing exactly how it is described in the mail() function documentation and still get that results, that sounds like a mail() function bug dealing with line endings. I have seen people complaining of the exactly the same thing, so you'd better not use the mail() function at all.


If you are using sendmail or some equivalente, you may want to try this class for composing and sending messages that comes with a sub-class specialized in deliverying via sendmail. That class also provides you easy control of sendmail options that are more appropriate for bulk mailing.

If you do not want to change your scripts much, you can use a wrapper function named sendmail_mail() that works exactly like the mail() function but works directly with sendmail and lets you change tune the options for bulk mailing as it would be useful for you.

http://www.phpclasses.org/mimemessage


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to