A simple PHP Mailing List that stores the name and email address in a CSV file and hence requires no additional database. Comes with form validation and AJAX interface.
This script stores names and email address of subscribers in a simple .csv
file in the mail
directory that is secured by an .htaccess
file. So only you can access it via FTP or SSH. Future verison may include admin page to access the file via web browser.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="query.plugins.js" type="text/javascript"></script>
$(document).ready(function() {
$('.message').hide();
$("#subscribe").validate();
$('#subscribe').ajaxForm(function() {
$('#subscribe').hide();
$('.message').fadeIn(300);
});
});
Note that #subscribe
is the id attribute of your form that you are going to use.
CHMOD mail
directory to 755
and .csv
file to 644
.
In case 644 doesn't work, make sure you CHOWN the mail directory and the list.csv file to proper user and group on your server. If that doesn't work either, you can just CHMOD the csv file to 642 that ensures you are only letting people to write the csv file and deny read.
CSV Based PHP Mailing List is licensed under MIT.