|
|
|
|
Sending Mail to Multiple Users
Home » PHP » Mailing List Management
Sending Mail to Multiple Users
This tutorial explains how to send email to multiple users whose email addressed stored in a Mysql database.
MAILING TO MULTIPLE USERS
This is not a script to create a mailing list, it's just a simple script that will allow you to send email to multiple users already stored in your database. I created a date service site in which users need to sign up to become members, since members give their email when they sign up, there was no need to put a "Join my mailing list" on my site. So basically every email is stored on the database when a member signs up. Also since members have to select the country they live in, not only i needed a function to send emails to the entire list but also send emails to members belonging only to a single country.
Please take into consideration that i didn't write this script for beginners, so in other words, you need to have at least a basic knowdlege of PHP and MYSQL. I was actually looking for a script like this and i found some, but they were a bit too complicated for a simple task i wanted to do, i didn't have time to write my own but at the end i had no choice and guess what?? it only took me 10 minutes!
Intro
This script is quite simple and i used "PHP Multi-Purpose Pages" which means that it only takes one page to do everything. If you do not know what are "PHP Multi-Purpose Pages", i suggest you find a tutorial about it, but to give you a brief definition, "Multi-Purpose Pages" allows you to have two HTML pages in one and each page is shown depending on the condition executed.
The HTML
Here's a look at the HTML page that you will use to send emails to your list. Of course it doesn't looks quite pretty but this is just an example and besides you can modify it the way you like it.
|
More Tutorials by this user
|
|
|
|
|
|
|
|
|