Fantastic AJAX Newsletter Module

Fantastic AJAX Newsletter Module

Mar 9th, 2009 in Others

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.


Related Freebies

Download some more awesome freebies!

Enjoy this Post?

Your vote will help us grow this site and provide even more awesomeness

User Comments

( ADD YOURS )
  1. PG

    trs21219 March 9th

    Nice! Bookmarked!

    ( Reply )
  2. PG

    Homar March 9th

    Looks good.

    ( Reply )
  3. PG

    @doud March 9th

    HUUUUUUUUUUUUUUUGGGE !!!!!!!

    ( Reply )
  4. PG

    Yoosuf March 9th

    great i am diging it

    ( Reply )
  5. PG

    Michal Simonfy March 9th

    Thanks ! I’m glad you like it.

    ( Reply )
    1. PG

      Vinay Vidyasagar March 22nd

      you mind if i mail you an error log ?

      ( Reply )
      1. PG

        Michal Simonfy March 23rd

        not at all, just go ahead

  6. PG

    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.

    ( Reply )
  7. PG

    not2comply March 9th

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

    ( Reply )
  8. PG

    Patrik March 9th

    This is just awesome!

    ( Reply )
  9. PG

    Renee March 9th

    Hmm doesn’t want to work for me…

    ( Reply )
  10. PG

    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…

    ( Reply )
    1. PG

      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.

      ( Reply )
    2. PG

      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.

      ( Reply )
  11. PG

    kisdo March 9th

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

    ( Reply )
  12. PG

    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.

    ( Reply )
  13. PG

    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.

    ( Reply )
  14. PG

    Amy March 9th

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

    ( Reply )
  15. PG

    Andrew March 9th

    Oooh, handy stuff, thanks!

    ( Reply )
  16. PG

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

    ( Reply )
  17. PG

    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?

    ( Reply )
  18. PG

    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 !

    ( Reply )
  19. PG

    Otto March 9th

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

    = (

    ( Reply )
  20. PG

    Michal Simonfy March 9th

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

    Thanks.

    ( Reply )
  21. PG

    Anish March 9th

    whatever, It’s not working.

    email address not deleting
    can’t see sent mail.

    ( Reply )
    1. PG

      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.

      ( Reply )
  22. PG

    Ariyo March 9th

    nice, I like it.

    ( Reply )
  23. PG

    Abhilash March 9th

    good

    ( Reply )
  24. PG

    Bleyder March 10th

    Bookmarked!

    ( Reply )
  25. PG

    eXsolved March 10th

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

    ( Reply )
  26. PG

    Nauglamir March 10th

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

    ( Reply )
  27. PG

    forex newsletter March 10th

    Michael thanks for clearing this out. It helps.

    ( Reply )
  28. PG

    Tarek Farage March 12th

    Awesome!

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

    ( Reply )
    1. PG

      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.

      ( Reply )
  29. PG

    BAE March 13th

    Nice :-) .

    ( Reply )
  30. PG

    T-Law March 18th

    Thanks Michal ;)

    ( Reply )
  31. PG

    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 ?

    ( Reply )
    1. PG

      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

      ( Reply )
      1. PG

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

    2. PG

      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.

      ( Reply )
      1. PG

        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

  32. PG

    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.

    ( Reply )
    1. PG

      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

      ( Reply )
      1. PG

        Einer May 5th

        Thank you for your work

        I would like to interview you for my magazine

  33. PG

    AleXawY March 24th

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

    ( Reply )
  34. PG

    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.

    ( Reply )
  35. PG

    Brisa April 16th

    Hola, un saludito

    ( Reply )
  36. PG

    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!

    ( Reply )
    1. PG

      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.

      ( Reply )
  37. PG

    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.

    ( Reply )
  38. PG

    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?

    ( Reply )
    1. PG

      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

      ( Reply )
      1. PG

        Carlos Maldonado December 18th

        Thanks this codeline fix the bug! and this works perfectly! :D

  39. PG

    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

    ( Reply )
    1. PG

      jan August 31st

      it’s not a bug. You need to install the sql code first

      ( Reply )
  40. PG

    daniel May 27th

    what about .net????

    ( Reply )
  41. PG

    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.

    ( Reply )
  42. PG

    Woody July 20th

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

    ( Reply )
  43. PG

    koko September 5th

    Dear Developer,

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

    regards,

    Koko

    ( Reply )
  44. PG

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

    ( Reply )
  45. PG

    Daniel September 14th

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

    Thanks

    ( Reply )
  46. PG

    Daniel September 21st

    nodody can help me?

    ( Reply )
  47. PG

    Fix4Me September 25th

    Nice! very Nice!

    ( Reply )
  48. PG

    Lucas October 16th

    Great tool thanks!

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

    Thank you!

    ( Reply )
  49. PG

    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 ?

    ( Reply )
  50. PG

    Sanjay December 2nd

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

    ( Reply )
  51. PG

    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

    ( Reply )
  52. PG

    Dian Erianto December 30th

    Thank you for the information. :)

    ( Reply )
  53. PG

    Vince January 13th

    Nice,i’ll test it out.

    ( Reply )
  54. PG

    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…

    ( Reply )
  1. Arrow
    Gravatar

    Your Name
    January 19th