
Fantastic AJAX Newsletter Module
Mar 9th, 2009 in OthersThis free app should be great for any newsletter management needs. Copy this one file onto your site, and you're ready to send and archive all newsletters, manage e-mail addresses and categories, and configure a template for your e-mails. If needed, the source code is well documented!


License
CC Attribution-Noncommercial-Share Alike 3.0
- Subscribe to the NETTUTS RSS Feed for more daily web development tuts and articles.
Related Freebies
Download some more awesome freebies!
















User Comments
( ADD YOURS )trs21219 March 9th
Nice! Bookmarked!
( )Homar March 9th
Looks good.
( )@doud March 9th
HUUUUUUUUUUUUUUUGGGE !!!!!!!
( )Yoosuf March 9th
great i am diging it
( )Michal Simonfy March 9th
Thanks ! I’m glad you like it.
( )Vinay Vidyasagar March 22nd
you mind if i mail you an error log ?
( )Michal Simonfy March 23rd
not at all, just go ahead
justin March 9th
Great Module!
It would be cool if you could copy HTML into that and send it out as an email blast too. From the demo – you can only do plain text.
( )not2comply March 9th
Awesome…..!!!!!!!!!!!!!!!
( )Patrik March 9th
This is just awesome!
( )Renee March 9th
Hmm doesn’t want to work for me…
( )Tommy M March 9th
Roughly NO documentation? Have to hard-code to send as HTML, and you can’t even test it? No tracking statistics??
Thanks, but no thanks. I’ll stick to phpList…
( )Dailywho March 12th
Wow…so polite! Im sure many people will want to visit your site seeing as how great you are and helpful for the community.
( )Woody July 20th
As far as documentation goes, I’m currently doing a couple of modifications to it. I’ve found that if you know anything about php you should have no trouble finding which parts of the code do what.
( )The documentation is great.
kisdo March 9th
Crazzzyyy stuff. This is what I was looking for since I was born (and maybe even before..). Thanks a lot.
( )robj March 9th
A lot of eye candy, and works great. But as a email marketing manager, it lacks a lot of important features. Good start though.
( )steve b March 9th
Not up to Nettuts standard at all! As Tommy said, no nuthin’. A good newsletter module would be very useful, ’specially if it plugged in to WP.
( )Amy March 9th
I have to agree with Tommy M. I’m a fan of campaign monitor.
( )Andrew March 9th
Oooh, handy stuff, thanks!
( )Michael March 9th
It’s just a tutorial, you start with this an build on it, some people expect the work to be handed to them.
I thinks it’s great, I can already think of a few clients I can use something like this for. With a few enhancements it will be fantastic.
Thanks!!!!
( )peter March 9th
It looks like a great start but there’s no real way for users to manage themselves. How would someone unsubscribe themselves?
( )Michal Simonfy March 9th
Thanks for your comments !
It’s a pre release, so this is what was important for me to know. You’re right Peter, I forgot to manage user unsubscriptions
Will be included in 1.0 version for sure.
Also, there are many features mentioned, which I haven’t included just because I didn’t want to compete phpList (as it was mentioned) with this module !
phpList is a complex application for NL management,
this is just one file and easy to use which you put on your website and you’re ready to go, if these options are appropriate for your needs.
And I personally made a lot of websites where these options are just enough.
For sure, if you’re looking for some advanced module,
you’d rather go for something more complex.
Thanks again !
( )Otto March 9th
The spam filter on hotmail sends messages to the spam bin ….
Any idea to fix this?…
= (
( )Michal Simonfy March 9th
Probably because the return path is defined as you@domain.com.
You can change this in newsletter settings.
Thanks.
( )Anish March 9th
whatever, It’s not working.
email address not deleting
( )can’t see sent mail.
Woody July 20th
The way I see it, this is why:
( )Either you didn’t connect to your database correctly or your database is set up with weird permissions settings.
Ariyo March 9th
nice, I like it.
( )Abhilash March 9th
good
( )Bleyder March 10th
Bookmarked!
( )eXsolved March 10th
VERY NICE
This has inspired me to learn more AJAX 
( )Nauglamir March 10th
Great, a perfect solution for a wp plugin!
( )But not easy to translate in other languages…
forex newsletter March 10th
Michael thanks for clearing this out. It helps.
( )Tarek Farage March 12th
Awesome!
Love how people complain about a) a tutorial b) a freebie… seriously dudes!
( )Michal Simonfy March 12th
Thank You.
Please, if you like the module, stay updated through my newsletter ( http://virae.org/newsletter_module/source/ ), as I’m planning to release a new version with some features listed in these comments.
( )BAE March 13th
Nice
.
( )T-Law March 18th
Thanks Michal
( )Soso Jana March 19th
Its not working for me
i installed it everything looks cool but when i send massage, i didn’t getting it in my email box. can’t understand why, and from your demo yes i can.
first i thought that it is because of some spam protection but no. it’s just not sending the massage.
i check the mysql and i saw that in sent_mails showed the massages i send.
so everything is ok with mysql.
so where is the problem ?
( )Michal Simonfy March 20th
Try to run an php’s internal mail function on your server, if it’s working ok. You can find a simple script here http://php.net/mail
( )Simon Jensen September 13th
I have problems with this newsletter.
Then i download it and setup it right im sure i have setup it right, then i press add new categori and type something and press “ok” nothing happens, why?.
Woody July 20th
Many free web hosts allow you to use most php but deny you the mail() function. It’s their way of saying “Upgrade!”.
( )So, that may be why you’re experiencing this issue.
Simon Jensen September 14th
Thx for the help, but first i test it on my wamp server and you have right it will not work on that because i havent setup a email client.
now i have testing it on a webhost on the internet and i know it works on that but then i pres “ADD CATEGORY” and press OK nothing happens, and thats wried :O, do you know why? i think its the javascript but i dont know
jimmymax March 21st
how would someone sigup to my newsletter, can someone please tell me what i need to do, this is a great script and the developer needs to be thanked not joked around with, most people here donot have any kind of respect for efforts, i would like to see them coming up with something like this, they wish they could, so please pay your respect for something you even intend to use, i know where you guys are coming from, dont think i dont or even michal dont.
Please someone help on how i would get someone to signup to the newsletter from my website.
( )Michal Simonfy March 23rd
a simple script for ajax frontend (allowing users to choose a category, as you requested by e-mail ) – http://virae.org/newsletter_module/source/frontend.zip
( )Einer May 5th
Thank you for your work
I would like to interview you for my magazine
AleXawY March 24th
hey buddy can i translate ur app to any other language keep ur copyrights and add my copyrights for translation ??
( )Håkan Folkesson April 2nd
Looks awesome and easy to follow the code too! Gonna give it a try. Just what I was looking for.
( )Brisa April 16th
Hola, un saludito
( )nana April 20th
First of all, thanks! It is handy!
Is easy for ppl like me
Hmm, I use the demo to send a test, I get the banner template.
But I download and installed it, when I send, only text?
Can add banner or html code?
Thanks!
( )Woody July 20th
find the line that says “$use_template = false;” and change it to “$use_template = true;”. That will give you the default template. To modify it, change the HTML being stored in the variables $template_top and $template_bottom.
( )Adriano May 7th
There’s no documentation for the source. I really enjoyed the developed solution but I just can’t be sucesseful on installing it.
( )Eugenio May 18th
First of all…sorry for my english!
I am using this FANTASTIC module on my site, and I think I have found a bug.
When you click in an email checkbox, click again to unmark it, and mark it one more time, the email will be sent two times to this recipient.(a lot of mails if you repeat this process).
Is there any way to prevent this email adress duplication?
( )O'Ryan May 20th
mm yes i noticed this too it seems as tho a function to clear the list and send a fresh one to avoid duplicating emails was forgotten.
search for the serializeSelection() fuction in your code
and add var emails = new Array();
right after the function begins before the category array is set
( )Carlos Maldonado December 18th
Thanks this codeline fix the bug! and this works perfectly!
Alex Medina May 19th
This is great!
I just have a bug here, when i’m click on the sent-email, i have this message
Warning: Invalid argument supplied for foreach() in /var/www/newsletter/index.php on line 954
( )jan August 31st
it’s not a bug. You need to install the sql code first
( )daniel May 27th
what about .net????
( )Positive feedbak July 16th
great job Michal, you are very generous putting this tutorial together for us all. please ignore the ignorant sods that are moaning on here. They are just haters and live miserable meaningless little lives.
( )Woody July 20th
With a couple of modifications, this is fantastic for a website I am working on.
( )Thanks for the great code.
koko September 5th
Dear Developer,
It awesome. Where can I see the archive newsletter.?
regards,
Koko
( )Simon Jensen September 12th
I have problems with this newsletter.
Then i download it and setup it right im sure i have setup it right, then i press add new categori and type something and press “ok” nothing happens, why?.
( )Daniel September 14th
Is there any way to apply a WYSIWYG editor?
How?
Thanks
( )Daniel September 21st
nodody can help me?
( )Fix4Me September 25th
Nice! very Nice!
( )Lucas October 16th
Great tool thanks!
I got one question, how many emails will it handle to send?
Thank you!
( )kevin November 5th
Great nl code. I just tested online and the admin works great. However i have difficulties setting up the front end. I changed the database settings and upload all on my server but doesnt send email adress to the database. Did i miss something ?
( )Sanjay December 2nd
Simply Great for the freshers. I will add some features in it in future and must send u for the review.
( )Yash Mistrey December 13th
Error Occurring
PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\HostingSpaces\makemycr\makemycreative.in\wwwroot\newsletter_module\index.php on line 735
PHP Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in C:\HostingSpaces\makemycr\makemycreative.in\wwwroot\newsletter_module\index.php on line 746
PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\HostingSpaces\makemycr\makemycreative.in\wwwroot\newsletter_module\index.php on line 749
PHP Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in C:\HostingSpaces\makemycr\makemycreative.in\wwwroot\newsletter_module\index.php on line 753 PHP Warning: Invalid argument supplied for foreach() in C:\HostingSpaces\makemycr\makemycreative.in\wwwroot\newsletter_module\index.php on line 911
( )Dian Erianto December 30th
Thank you for the information.
( )Vince January 13th
Nice,i’ll test it out.
( )Jon Davis January 19th
Does anyone know how to correct this:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/site/public_html/newsletter/index.php on line 786
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/site/public_html/newsletter/index.php on line 798
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/site/public_html/newsletter/index.php on line 802
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/site/public_html/newsletter/index.php on line 806
It seems to be caused by this:
// LOAD DATA INTO ARRAYS
$result = mysql_query(“SELECT * from $table_categories”);
while ($row = mysql_fetch_assoc($result)) {
$emails_result = mysql_query(“SELECT * from $table_emails WHERE category = “.$row['id']);
while ($subrow = mysql_fetch_assoc($emails_result)) {
$row['emails'][] = $subrow;
}
mysql_free_result($emails_result);
$categories[] = $row;
}
mysql_free_result($result);
$result = mysql_query(“SELECT * from $table_sent”);
while ($row = mysql_fetch_assoc($result)) {
$sent[] = $row;
}
mysql_free_result($result);
?>
Any help would be appreciated…
( )