Jump to content

How to send an email to all Subscribers


romio

Recommended Posts

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.
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.