boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Simple mail(); question

 
Post new topic   Reply to topic    boardom Forum Index -> PHP help
View previous topic :: View next topic  
Author Message
Kiin



Joined: 10 Jun 2003
Posts: 21

PostPosted: Mon Jun 16, 2003 9:45 pm    Post subject: Simple mail(); question Reply with quote

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
Back to top
View user's profile Send private message
mcgub



Joined: 19 Apr 2003
Posts: 27

PostPosted: Tue Jun 17, 2003 3:53 pm    Post subject: Reply with quote

http://ca.php.net/manual/en/function.mail.php
Basically, you're correct with comma separated recipients
_________________
7 out of 10 voices in my head say I'm not crazy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> PHP help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group