Jump to content


Photo

bulk mail() + attachment in a loop


  • Please log in to reply
3 replies to this topic

#1 arfa

arfa
  • Members
  • PipPip
  • Member
  • 28 posts

Posted 12 September 2006 - 10:51 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 send in lots of 100.

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

Attachments:
I have got the 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 script hand is slow and debugging can be tediously slow - especially with mail script as it can only be done on-line and I am on 36k dial-up at the moment.

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 !  ;D

thanks

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 12 September 2006 - 11:26 AM

Forking...

http://www.phpfreaks...orials/71/0.php
follow me on twitter @PHPsycho

#3 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 12 September 2006 - 11:53 AM

I would reccomend NOT using PHP for this task. Investigate a true mailing list program.One that is designed to send email and has been debugged already.

If you're using a shared host machine running Linux there is probably one installed already that you can use. Check with you're hosting provider.

Ken

#4 arfa

arfa
  • Members
  • PipPip
  • Member
  • 28 posts

Posted 13 September 2006 - 12:07 AM

Greetings Ken,

Nice to have a very clear 'NOT'.
I would very much appreciate an expansion of your thoughts.

Part of the process here is one of learning. The how and why.
Certainly PHP can mail and can send attachments. What are the limitations?

Too slow, too risky, unreliable...?
I am not so proud as to use a pre-made script but I would like to know why I might mess up with my own.

I hope you have the time to reply.

Thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users