Workaround For The 990 Character Limitation For Email Mailservers
Solution 1:
You can put your content through the wordwrap() function so that you don't manually have to insert newlines.
Have you considered using one of the many mail libraries available? PHPMailer, PEAR Mail, SwiftMailer, etc...?
Solution 2:
Order servers have an even lower limit: 76 chars per line + \r\n
.
You have to make use of the imap_8bit()
and imap_binary()
functions in order to convert your data to a base64 or quoted-printable encoding.
You can also use an existing library, like SwiftMailer.
Solution 3:
Actually, this is not a "mail server" problem. The SMTP line limit dictates the number of characters allowed on each line during transmission. The SMTP RFC allows for up to 1000 characters per line, and default postfix installed cap at 998 characters. You should contact your hosting provider on increasing your SMTP line limit if you feel it's necessary to exceed the RFC.
Post a Comment for "Workaround For The 990 Character Limitation For Email Mailservers"