I'm trying to send a mail() with a var in the body of the message bigger than 1024 characters nut the message that arrives stops in the 1024th character.
Is there anyone how knows a way to bypass this?
Thanks in advanced.
mail() problem
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: mail() problem
QP encode the message. Sadly there aren't any built in functions to do this in PHP, but as per ~feyd's suggestion you could force QP encoding of a message by doing this:aetoc wrote:I'm trying to send a mail() with a var in the body of the message bigger than 1024 characters nut the message that arrives stops in the 1024th character.
Is there anyone how knows a way to bypass this?
Thanks in advanced.
Code: Select all
$message->setEncoding("QP");On second thoughts, you can always base64 encode the message and send it with mail() since base64_encode() exists in PHP.