PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Pear Mail memory error

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail
View previous topic :: View next topic  
Author Message
bvossey



Joined: 03 Apr 2008
Posts: 1

PostPosted: Thu Apr 03, 2008 10:40 am    Post subject: Pear Mail memory error Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software