Log in

View Full Version : what are PHP mail limitations



kusalo
09-13-2006, 04:42 AM
I have the idea that sending bulk mail in batches is the thing to do. Script timing out [max_input_time ?], spam, and such. About 500 on the mail list. I currently send in lots of 100.

Are batches a good idea?
Not necessary?
Other thoughts?

Attachments:
I have got my script sending an attachment - in a single batch loop.
But, from the PHP manual

>> file will be deleted from the temporary directory at the end of the request...

I presume this means the end of the first batch.
So, I hesitate to charge off exploring alternatives without your guidance.

My first thought is to literally upload the file to my server and unlink on completion of the last batch .

Set me on the path of righteousness my friends !


thanks - arfa

djr33
09-13-2006, 09:16 AM
This isn't directly related, but I read in the notes about the mail() function on php.net that there's another function/set of functions better used for mass emailing. I think. IMAP or something. Though, I just glanced at it, and didn't need to try it myself.

codeexploiter
09-13-2006, 09:19 AM
http://lists.evolt.org/archive/Week-of-Mon-20011126/062469.html

kusalo
09-13-2006, 11:36 AM
thanks codex - I will read those zend notes later but first glance

yes, djr - imap and pop can be done (my reading is very limited) but mail() seems to be direct enough for the relatively small volume I am likely to be handling. I am just not sure of the boundaries.

djr33
09-13-2006, 01:34 PM
Right. mail() works fine. I'm just noting that you were asking about boundaries and that I read something suggesting that there were less-bounded options ;)
But if mail() works, I'd just stick with that. It's easy.