Page 1 of 1

PHP Mailing Lists

Posted: Sun Jan 18, 2004 3:48 am
by Underhill
Hello all, im new to this group. I've recently just started using php on my site and i was hoping someone might to be able to offer me some advise / help.

So heres my question:-

:arrow: I want to write a mailing list for my site. So that people can
subscribe and then i can email that mailing list which would send
the email to all the relevent people who have subscribed

:?: Does anyone know how this can be done.

:?: Perhaps someone knows of a tut on the web that they could
direct me too.

:wink: Any help would be most greatful. Underhill.
[/i]

Posted: Sun Jan 18, 2004 4:39 am
by kettle_drum
1) Create a form to allow people to join the mailing list. Store these email addresses in a database.

2) Create a form that you enter your email into.

3) On submittion of this form, create a loop which sends the data you entered into the form to all the email addresses in the database:

foreach($member_email as $address){
mail($blah, $blah, $blah);
}

Posted: Sun Jan 18, 2004 10:24 am
by Underhill
Cheers, i wasnt sure if it would be that simple :) ill give it a go.