What is a double opt-in email list?
Sooner or later you want to validate an email address to make absolutely certain who you are sending mail to really wants the mail. The process of allowing someone to fill out a form and then have a (php) program send that person and email to click a unique URL inside the mail to validate is known as creating a double opt-in email list. You might recall I covered how to create a subscribe / unsubscribe mail list (122899) (122999) and (123099) That list was a single opt-in email list and it is the list I used for this website. But what if I wanted to make the list double opt-in instead? Let’s use the same mail script I’ve already created in these diary entries and just tweak the subscribe script. You’ll find the code for the subscribe script in the (122999) diary entry. All I need to do is add a validation branch to this code. Adding a Validation branch A validation branch of code would be a section of code just before actually adding the email address to the flat text file. This will c