Question:

Efficient PHP mailing list?

by  |  earlier

0 LIKES UnLike

I'm about to write a quick and dirty mailing list in PHP but I have a question:

If I store the subscribed addresses in a database or text file, is it as easy as looping through the list and using the mail() function on each one? It seems a script like that would take forever and p**s off my hosting company.

Thanks

James

 Tags:

   Report

1 ANSWERS


  1. Hello James,

    Why don't you just grab all the addresses and store them in a variable like this:

    $list = "email@email.com, email2@email.com....";

    And then in the mail function, set $to to your own email address, and use the headers for mail function to the above email addresses as blind carbon copy (bcc)?

    Check Example #4 Sending HTML email of the function mail: http://us2.php.net/function.mail

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.