Quoting Uri Even-Chen, from the post of Wed, 07 Mar: > Hi people, > > I wrote a PHP program that sends E-mail to 121 E-mail addresses at > once [http://www.speedy.net/knesset/]. The problem is, it takes many
What happens when spammers start using your little script? or maybe just stupid kids start sending curses "just to see if it works"? What if your user wants to send just the MKs interested in green energy or just the ones involved in fighting traffic dangers? you wrote a primitive little webform that will get your website either blocked or sued faster than you can speed-dial your lawyer. I suggest you start small - first have an Email confirmation mechanism to make sure your sender is not an anonymous spammer. then maybe have humans going over the letters before you send them out to make sure you won't shoot yourself in the foot. Then maybe sendi them just to members of specific groups or parties seperately. from my short experiance of 10 years maintaining dynamic websites, leaving an open form like this that sends mail to third parties is inviting trouble. a better idea is list all the addresses as plain text, not mailto: links even, in usefull groups. Have your users copy the bunch they want to harass to their mail program and bomb the knesset with their own account. you do NOT want to be in the middle of this when the sh*t hits the fan (and it will) > seconds until the program completes sending all the E-mails. I want > to give the user an instant feedback, and send E-mails later (after > the HTML output is complete). How do I do it? You put it in a queue, tell the user you are sending her a confirmation request. and if the Email checks out you take care of sending the emails and at the end of the run send another email to tell them it was sent. -- Hong Kong action star Ira Abramov http://ira.abramov.org/email/ ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]