Kiin
Joined: 10 Jun 2003 Posts: 21
|
Posted: Mon Jun 16, 2003 9:45 pm Post subject: Simple mail(); question |
|
|
I have a simple question that I believe I know the answer to, but I was too lazy to write out an entire code just to test it. (Am making a hack for b2, so many people have requested it and all the php techies are way too lazy to code it, so I took command, mwaha!). Anyways, as you can tell from the subject, it's about the mail(); function. I know you can send an email to more than one recipient, but the question is how. Is it as simple as seperating the reciepients by a comma?
See, the hack I am coding is for a post notification thingy. Here, let me explain. For bloggers with b2, this hack will allow visitors to subscribe to a mailing list and everytime a post is made onto the blog the entry is mailed to each subscriber ^_^ All the mail addresses would be stored in a MySQL table and then from there you can mail them with the mail(); function. I was going to make a while() loop and tell it to mail blah blah to each user while the users kept coming from the database, but I thought if there were too many subscribers...say there were 150 subscribers, with the while loop it would have to send out 150 individual mails all containing the same thing and each mail only to one person. That would use up way too much server resources, if not crash the whole thing all together if there are enough emails sent. So I figured the best thing to was to send it all in one shot, but to a billion peoples. How do I tell the mail() function to send it to multiple users is all I wanna know. Sorry for typing so much, I got a bit carried away.
-Kiin _________________ -Kiin |
|