I am new to this application and I am trying to get it set up for the first time. I have everything working accept the e-mail functionality. Whenever I try to email and invoice I get the following error:
Fatal error: Out of memory (allocated 32243712) (tried to allocate 837194 bytes) in ....../simpleinvoices/library/mail/class.phpmailer.php on line 1126
This is the actual line: /* chunk_split is found in PHP >= 3.0.6 */ $encoded = chunk_split(base64_encode($str), 76, $this->LE);
I have created a PHP.ini file to overwrite the default values of my Host. I have no problems creating PDF files. I have put a copy of the PHP.ini file in both the root simpleinvoices/ folder as well as the /simpleinvoices/library/mail/ where the php file in question is located.
Could this error be caused by invalid smtp settings in the config file? Since I have never been able to send an email I can't verify that these settings are correct. Does anyone have any ideas? Thanks.
Thanks for your reply Justin I am trying to use the gmail smtp server. Here are the settins that I am using, got the details from the gmail website: email.host = smtp.gmail.com email.smtp_auth = true email.username = my_address@gmail.com email.password = gmail_password email.smtpport = 587 email.secure = ssl email.ack = false
Has anyone used gmail successfully with this application? As for my host, they do allow email, and they also have an smtp server. As of right now I don't have any mailboxes set up with them though, they are just forwards to my gmail.
I have tried to use my hosts mail server and still no luck, the issue seems to be with the mail class running out of memory, I put bad data into the config file to see what error I would get, and it was totally different. So I am guessing that the settings are correct.
I then got a newer version of phpmailer but still getting the exact same error, but now its on a different line number as the code has changed and that line has moved. I am all out of ideas at this point. I notices a Zend folder in the library folder. Can I configure the application to use Zend instead of phpmailer?
@rkolech re zend - you can try - you have to redo all the Simple Invoices email code - refer post below -- if your interested in doing this - would be a great help to Simple Invoices
I've finished the implementation. Anyone who wants to test it before I commit it? Gmail seems to work for me now. I only couldn't implement ACK, what's it used for? Also there seems to be a problem when I catch exceptions, so the error handling is a bit nasty.