开发者

sending mail using pear

开发者 https://www.devze.com 2023-01-15 06:14 出处:网络
I have installed pear and when sending mail, I get the following error: Fatal error: Allo开发者_如何学运维wed memory size of 134217728 bytes exhausted (tried to allocate 6144 bytes) in C:\\wamp\\www\\

I have installed pear and when sending mail, I get the following error: Fatal error: Allo开发者_如何学运维wed memory size of 134217728 bytes exhausted (tried to allocate 6144 bytes) in C:\wamp\www\GamesRus\mail.php on line 2

I am running on windows 7. Here is my code:

"me@example.com", "Subject"=>"Test Mail"); $body = "This is a test!"; $mail->send("jngichabe@yahoo.com", $headers, $body); ?>

I would really appreciate the help.


You need to increase the memory_limit in your php.ini; considering 128MB of memory has been exhausted, I'd suggest a nice round number such as 256MB.

so change the entry in your php.ini to: memory_limit = 256M ;

0

精彩评论

暂无评论...
验证码 换一张
取 消