Fantastic AJAX Newsletter Module

This 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!

Newsletter Module
Newsletter Module

License

CC Attribution-Noncommercial-Share Alike 3.0

  • Subscribe to the NETTUTS RSS Feed for more daily web development tuts and articles.


Add Comment

Discussion 90 Comments

Comment Page 1 of 21 2
  1. trs21219 says:

    Nice! Bookmarked!

  2. @doud says:

    HUUUUUUUUUUUUUUUGGGE !!!!!!!

  3. Yoosuf says:

    great i am diging it

  4. Author

    Thanks ! I’m glad you like it.

  5. justin says:

    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.

  6. not2comply says:

    Awesome…..!!!!!!!!!!!!!!!

  7. Patrik says:

    This is just awesome!

  8. Renee says:

    Hmm doesn’t want to work for me…

  9. Tommy M says:

    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 says:

      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 says:

      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.

  10. kisdo says:

    Crazzzyyy stuff. This is what I was looking for since I was born (and maybe even before..). Thanks a lot.

  11. robj says:

    A lot of eye candy, and works great. But as a email marketing manager, it lacks a lot of important features. Good start though.

  12. steve b says:

    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.

  13. Amy says:

    I have to agree with Tommy M. I’m a fan of campaign monitor.

  14. Andrew says:

    Oooh, handy stuff, thanks!

  15. Michael says:

    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!!!!

  16. peter says:

    It looks like a great start but there’s no real way for users to manage themselves. How would someone unsubscribe themselves?

  17. Author

    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 !

    • Eshban says:

      Hello,

      Can you please guide me that how to use WYSIWYG editor with this fantastic application? I have used TinyMCE editor but the problem is that the HTML cannot be parsed. Please help me in this regard.

      Looking forward for your reply soon
      Eshban

  18. Otto says:

    The spam filter on hotmail sends messages to the spam bin ….
    Any idea to fix this?…

    = (

  19. Author

    Probably because the return path is defined as you@domain.com.
    You can change this in newsletter settings.

    Thanks.

  20. Anish says:

    whatever, It’s not working.

    email address not deleting
    can’t see sent mail.

    • Woody says:

      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.

  21. Ariyo says:

    nice, I like it.

  22. eXsolved says:

    VERY NICE :D This has inspired me to learn more AJAX :P

  23. Nauglamir says:

    Great, a perfect solution for a wp plugin!
    But not easy to translate in other languages… ;)

  24. Michael thanks for clearing this out. It helps.

  25. Tarek Farage says:

    Awesome!

    Love how people complain about a) a tutorial b) a freebie… seriously dudes!

  26. T-Law says:

    Thanks Michal ;)

  27. Soso Jana says:

    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 ?

    • Author

      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 says:

        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 says:

      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 says:

        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

  28. jimmymax says:

    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.

  29. AleXawY says:

    hey buddy can i translate ur app to any other language keep ur copyrights and add my copyrights for translation ??

  30. Håkan Folkesson says:

    Looks awesome and easy to follow the code too! Gonna give it a try. Just what I was looking for.

  31. Brisa says:

    Hola, un saludito

  32. nana says:

    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 says:

      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.

  33. Adriano says:

    There’s no documentation for the source. I really enjoyed the developed solution but I just can’t be sucesseful on installing it.

  34. Eugenio says:

    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 says:

      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

  35. Alex Medina says:

    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

  36. daniel says:

    what about .net????

  37. Positive feedbak says:

    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.

  38. Woody says:

    With a couple of modifications, this is fantastic for a website I am working on.
    Thanks for the great code.

  39. koko says:

    Dear Developer,

    It awesome. Where can I see the archive newsletter.?

    regards,

    Koko

  40. Simon Jensen says:

    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?.

  41. Daniel says:

    Is there any way to apply a WYSIWYG editor?
    How?

    Thanks

  42. Daniel says:

    nodody can help me?

  43. Lucas says:

    Great tool thanks!

    I got one question, how many emails will it handle to send?

    Thank you!

  44. kevin says:

    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 ?

  45. Sanjay says:

    Simply Great for the freshers. I will add some features in it in future and must send u for the review.

Comment Page 1 of 21 2

Add a Comment

To add a code snippet to your comment, please wrap your code like so: <pre name="code" class="html">YOUR CODE</pre>. You can replace the class name with "js," "css," "sql," or "php." If there are any "<" or ">" within your code, please search and replace them with: &lt; and &gt; respectively.