PHP Mailing Lists

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Underhill
Forum Newbie
Posts: 2
Joined: Sun Jan 18, 2004 3:48 am
Location: Uk, London

PHP Mailing Lists

Post 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]
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post 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);
}
Underhill
Forum Newbie
Posts: 2
Joined: Sun Jan 18, 2004 3:48 am
Location: Uk, London

Post by Underhill »

Cheers, i wasnt sure if it would be that simple :) ill give it a go.
Post Reply