 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
bvossey
Joined: 03 Apr 2008 Posts: 1
|
Posted: Thu Apr 03, 2008 10:40 am Post subject: Pear Mail memory error |
|
|
Hi,
For our newsletter script, we use Pear and the mail package but it doesn't work well. Indeed, the first mail are send then, we have this error :
PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10397 bytes) in /usr/lib/php/Net/SMTP.php on line 824
Status: 500 Internal Server Error
I try to allow more memory in my php.ini file -i put 256M for testing and it's work ! - but I want to know if I do something wrong.
Iwent to the SMTP.php line mentionned above but line 824 it's :
$data = preg_replace(array('/(?<!\r)\n/','/\r(?!\n)/'), "\r\n", $data);
We made a "foreach" of this function :
public function send($recipients, $headers, $message)
{
$object =& Mail::factory("smtp", $this->params);
$res = $object->send($recipients, $headers, $message);
unset($object);
return $res;
}
We have the last version of PHP 5 and pear packages.
Mail 1.1.14 stable
Mail_Mime 1.5.2 stable
Mail_mimeDecode 1.5.0 stable
Net_SMTP 1.2.11 stable
Do you see something wrong ?
Have I forget something ?
Thanks for your help,
Regards,
Benjamin |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|