Hi. I have a very annoying yet seemingly simple problem that I can't figure out. I have a 1and1.com business linux account and I use PHP heavily on the site. I can't get the mail() function to email more than 10240 characters. If the email 'message' contains 10241 characters in the string then the email doesn't ever send. If I send 10240 or less characters then it alwasy sends ok. I've also used PHPMailer quite a bit and it produces the same results. Here is the simple code below I use to test... only the top mail() will send out. This problem is drving me mad, it seems like a 1and1 problem but I've called them several times with no help.
<?php
for( $i=0; $i<10240; $i++ )
{
$body .= "X";
}
//I RECEIVE THE EMAIL WITH 10240 CHARACTERS
mail(" craigjohnsonaz@yahoo.com", "10240 Characters", $body, "To: The
Receiver <craigjohnsonaz@yahoo.com>\n" . "From: The Sender <craigjohnsonaz@yahoo.com>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1");
$body .= "X";
//I RECEIVE NO EMAIL WITH 10241 CHARACTERS
mail(" craigjohnsonaz@yahoo.com", "10241 Characters", $body, "To: The Receiver <craigjohnsonaz@yahoo.com>\n" . "From: The Sender <craigjohnsonaz@yahoo.com>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1");
?>
|