Jump to content


Photo

How to send an email to all Subscribers


  • Please log in to reply
1 reply to this topic

#1 romio

romio
  • Members
  • PipPip
  • Member
  • 28 posts

Posted 14 March 2006 - 03:09 PM

I have created my admin panel as follow:

1. (Add_Subscribers.php) which will add a new Subscriber based on html form (Subscriber will be added to my Database).

2. (View_Subscribers.php) which will list all Subscribers on my Database

3. (admin.php) just a simple menu page.

4. (Send_Mail.php) Help here, it’s a simple form with the following fields:

Subject, message (body), attachment and a send command button, am not sure.

How can I send this message to all Subscribers?

Anyone could help or point to some tutorials I will appreciate it.

Thanks in advance.


#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 14 March 2006 - 10:15 PM

Two ways:

Select all the addresses out of the db, then loop through them to create a long $to variable for your mail() function, then send a single email. The down side of this, is that all of your subscribers will see the other's email addresses.

Select all the addresses, then loop through and send an email to each one. It means a lot more emails, which your host may not appreciate, but the recipients will not be able to see anyone's address but their own.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users