Mailing List Management tutorials
|
|---|
Simple PHP mailing list
Simple mailing list subscription and unsubcription script. Commented code for easy undertanding. No databases required. List of emails will be stored in a file. Just copy the code provided to your site and it will work.
The script bellow will create and add or remove emails from users to a file, so that databases are not required. A tool to send emails to the list is also available. You may get it in the download page for this script.
As privacy in an email list is important, each time source code is requested here, a different file named "emaillist-XXXXXXXXXX.txt" will be assigned to the file where emails will be stored. The code "XXXXXXXXXX" is composed by letters and numbers. Users will be unable to discover this code. The file may be saved in a different location within the server. The first time an email is added to the list, a file with the above name will be created. In case it is not possible to create the file, a message is shown. In those cases the webmaster must check permissions in the directory to allow creating files (or just create a file with corresponding name and check its permissions).
| | Hits:754 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
| | | |
|---|
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.
| | Hits:644 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
| | | |
|---|
The PHP mail() Function
Learn abouth the mail() function in PHP, and how to specialize the parameters. The mail() function enables you to send an email from a browser
| | Hits:407 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
| | | |
|---|
Creating a Mailing List Manager with PHP
This tutorial will guide you through building a complete mail list administration solution in PHP, capable of handling multiple lists.
| | Hits:392 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
| | | |
|---|
Sending Mail To The Mail List
In this tutorial, you will learn to create the admin send mail form. It shows you how to use a loop to send the mail instead of simply separating the cc email addresses by commas. It also allows you to choose to send to everyone on the list, or send to only one specific recipient on the list.
Now that the login to the admin is successful and we have a secure environment, I need to make a form to be able to send mail to those on my list when indeed I do release new php scripts. My admin form will look a lot like the mail-to form (12/28/99) except it will have a few modifications:
| | Hits:282 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
| | | |
|---|
Using Loops to Send Mail to Multiple Recipients
This tutorial with revised code shows you how to send email to multiple recipients using loops.
The admin code I created worked fine except for one bothersome thing. It would send out the email to multiple recipients and print the proper unsubscribe code, BUT the "From" mail header did not work the way it should have inside of the "all" loop. It should have been printing my from email address on every email address, however it was printing "nobody" instead. When I send the emails to any single person the header it printed correctly. Do you know what I was doing wrong? Read on and I'll explain.
The Admin PHP code for the mail list script
Yesterday we did the HTML form and I realized while re-reading my diary entry I neglected to explain the "test" email and its use. You could set up an email and then mail to the "test" email first (you, namely). It is pretty good idea to run a test mail to see how things look before actually sending the email to multiple recipients. Unfortunately we are in a spam-filled cyber world these days. Let's look at the entire admin code to send the mail to multiple recipients. It is quite similar to the loop yesterday which filled the dynamic dropdown select menu:
| | Hits:231 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
| | | |
|---|
Building an Opt-in Email List
This helpful tutorial shows you how to build an opt-in email list in PHP. It covers validating email addresses, checking for duplicate email addresses, adding to a mailing list, and changing a strings case.
Yesterday during the wee hours I added a mail list to my form and today I'm going to go through how I did it. The first thing you need to do is determine if the email you are dealing with is in the valid format or not. Validating email addresses isn't a perfect science, unfortunately. When you think of all the different possible formats, you have to be pretty broad -- maybe too broad -- in defining a matching pattern (or regular expression, whatever you prefer to call it). You will find many different regular expressions other programmers have written for validating email addresses so mine certainly isn't the only one (nor am I egotistical enough to suggest it is the best one), but it is one that works:
| | Hits:211 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
| | | |
|---|
TD Subscribe Mail Script
Explains how to link to inside every opt-in mail list email to allow subscribers to easily and automatically unsubscribe from the list.
Before I actually start mailing to anyone I need a script that I can link to inside every opt-in mail list email to allow subscribers to easily and automatically unsubscribe from the list. In some places, due to the rampant abuse of spammers, I believe there is legislation which requires such a link, so an ounce of prevention might be worth a pound of cure. My message will look something like this:
| | Hits:196 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
| | | |
|
|---|
Simple PHP mailing list
Simple mailing list subscription and unsubcription script. Commented code for easy undertanding. No databases required. List of emails will be stored in a file. Just copy the code provided to your site and it will work.
The script bellow will create and add or remove emails from users to a file, so that databases are not required. A tool to send emails to the list is also available. You may get it in the download page for this script.
As privacy in an email list is important, each time source code is requested here, a different file named "emaillist-XXXXXXXXXX.txt" will be assigned to the file where emails will be stored. The code "XXXXXXXXXX" is composed by letters and numbers. Users will be unable to discover this code. The file may be saved in a different location within the server. The first time an email is added to the list, a file with the above name will be created. In case it is not possible to create the file, a message is shown. In those cases the webmaster must check permissions in the directory to allow creating files (or just create a file with corresponding name and check its permissions).
| | Hits:754 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
|
|---|
The PHP mail() Function
Learn abouth the mail() function in PHP, and how to specialize the parameters. The mail() function enables you to send an email from a browser
| | Hits:407 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
|
|---|
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.
| | Hits:644 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
|
|---|
Building an Opt-in Email List
This helpful tutorial shows you how to build an opt-in email list in PHP. It covers validating email addresses, checking for duplicate email addresses, adding to a mailing list, and changing a strings case.
Yesterday during the wee hours I added a mail list to my form and today I'm going to go through how I did it. The first thing you need to do is determine if the email you are dealing with is in the valid format or not. Validating email addresses isn't a perfect science, unfortunately. When you think of all the different possible formats, you have to be pretty broad -- maybe too broad -- in defining a matching pattern (or regular expression, whatever you prefer to call it). You will find many different regular expressions other programmers have written for validating email addresses so mine certainly isn't the only one (nor am I egotistical enough to suggest it is the best one), but it is one that works:
| | Hits:211 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
|
|---|
TD Subscribe Mail Script
Explains how to link to inside every opt-in mail list email to allow subscribers to easily and automatically unsubscribe from the list.
Before I actually start mailing to anyone I need a script that I can link to inside every opt-in mail list email to allow subscribers to easily and automatically unsubscribe from the list. In some places, due to the rampant abuse of spammers, I believe there is legislation which requires such a link, so an ounce of prevention might be worth a pound of cure. My message will look something like this:
| | Hits:196 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
|
|---|
Sending Mail To The Mail List
In this tutorial, you will learn to create the admin send mail form. It shows you how to use a loop to send the mail instead of simply separating the cc email addresses by commas. It also allows you to choose to send to everyone on the list, or send to only one specific recipient on the list.
Now that the login to the admin is successful and we have a secure environment, I need to make a form to be able to send mail to those on my list when indeed I do release new php scripts. My admin form will look a lot like the mail-to form (12/28/99) except it will have a few modifications:
| | Hits:282 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
|
|---|
Using Loops to Send Mail to Multiple Recipients
This tutorial with revised code shows you how to send email to multiple recipients using loops.
The admin code I created worked fine except for one bothersome thing. It would send out the email to multiple recipients and print the proper unsubscribe code, BUT the "From" mail header did not work the way it should have inside of the "all" loop. It should have been printing my from email address on every email address, however it was printing "nobody" instead. When I send the emails to any single person the header it printed correctly. Do you know what I was doing wrong? Read on and I'll explain.
The Admin PHP code for the mail list script
Yesterday we did the HTML form and I realized while re-reading my diary entry I neglected to explain the "test" email and its use. You could set up an email and then mail to the "test" email first (you, namely). It is pretty good idea to run a test mail to see how things look before actually sending the email to multiple recipients. Unfortunately we are in a spam-filled cyber world these days. Let's look at the entire admin code to send the mail to multiple recipients. It is quite similar to the loop yesterday which filled the dynamic dropdown select menu:
| | Hits:231 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
|
|---|
Creating a Mailing List Manager with PHP
This tutorial will guide you through building a complete mail list administration solution in PHP, capable of handling multiple lists.
| | Hits:392 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-18 Rate It | Error | Review |
|
|
WebmastersHome.com Discussion about programming, SEO, WebHosting and more! |
|