Ext
Ext

Reputation: 702

(PHP) Sending mail with php's Mail function adds new lines every 990 characters. How to workaround

I have the following problem:

Using the PHP mail() function i send mails around. But every so often the damn sendmail adds newlines to the message (Content-type: text/html; charset=utf-8).

Reading http://proquest.safaribooksonline.com/1565928393/ch20-77125 i figured out that this L= parameter is not set in sendmail. But i have no access to the mail server.

Is there a way ( By setting mail headers or something ) to skip the adding of these new line characters in the body of the mail )

Thanks in advance

Upvotes: 0

Views: 198

Answers (1)

Corubba
Corubba

Reputation: 2243

I recommence to use a mailer class like PHPmailer, cause the build-in mail function don't match today's email standards, and you can easily configure the class for your needs.

Upvotes: 0

Related Questions