Welcome Guest, Not a member yet? Register   Sign In
Problem with email attachment size
#1

[eluser]danny123[/eluser]
Hello,

I'm trying to add an email attachment roughly 2MB in size, but it does not seem to be working. I can send smaller files less than 1MB with no problem. Mail is being sent via smtp. I checked the account that is used to send the email, there were no failure notices. The account does not have any attachment size restrictions.

CI is not throwing any errors either. The send() method is returning true, but any code after send() is not being executed.

Any ideas?

Thanks.
#2

[eluser]danny123[/eluser]
I checked the server error logs, looks like the memory allocated for PHP was being used up. It's set to 16MB right now. I'm going to bump it to 32MB to see if that helps. Is it normal for CI mail to use up that much memory when processing attachments for an email?
#3

[eluser]TheFuzzy0ne[/eluser]
I wouldn't have thought that was normal, no. Are their any loops in your app?
#4

[eluser]danny123[/eluser]
No loops, but I am processing an image (adding text and overlaying another image to it) before sending the email. I suspect that is what's using up most of the memory. So far 32MB seems to be working well.




Theme © iAndrew 2016 - Forum software by © MyBB