Try Tuts+ Premium, Get Cash Back!

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.


Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • Adriano

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

  • Eugenio

    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?

    • http://iamlion.com O’Ryan

      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

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

  • Alex Medina

    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

    • http://www.rapidtime.co.uk jan

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

  • http://www.exclusive-media.hr daniel

    what about .net????

  • Positive feedbak

    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.

  • http://www.wbardesign.com Woody

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

  • koko

    Dear Developer,

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

    regards,

    Koko

  • Simon Jensen

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

  • http://www.disenio.net Daniel

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

    Thanks

  • http://www.disenio.net Daniel

    nodody can help me?

  • http://www.fix4me.net Fix4Me

    Nice! very Nice!

  • Lucas

    Great tool thanks!

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

    Thank you!

  • kevin

    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

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

  • Yash Mistrey

    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

  • http://dianerianto.com Dian Erianto

    Thank you for the information. :)

  • http://www.mrvinux.com Vince

    Nice,i’ll test it out.

  • Jon Davis

    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…

    • Roman

      I have the same problem, can anybody help please!!!!!

  • http://www.jana-soft.com hadi

    Great code thanks a lot ..
    but I have only one question,
    how could I know that my message sent successfully or not ?

  • Pingback: Great collection of Free and Open source Newsletter Management tools. | GuiDesigner

  • http://www.eshban.com eshban bahadur

    how to use WYSIWYG editor with this beautiful newsletter module?

    Please help. I myself try to do it but still not successful

    Thanks

  • http://www.sanchy.com sanchy

    i have a serious issue. Im at work, using a Mac. I configured and installed this to our needs, but its not working.
    I can access it, log in, but when i try to add a category it just pops up an alert saying “Err” and that’s it.

    anyone has any idea whats going on??

  • John

    I too had the same issues but I managed to fix it.

    Email me if you want to get it to work @ bugz-2849@hotmail.co.uk

  • http://www.thoughtsmall.com Dennis

    I have made a fix for the front page of the module. You can now implement a newsletter suscription form in the front end of your website easily. I have also added extra features like email validation, check database for duplicate emails before submitting and alert box to handle messages. You can find the fix here http://www.thoughtsmall.com/free-ajax-newsletter-script-front-end-fix/

  • FireWolf

    This script is excellent! thank you very much!
    I have it installed on my website.
    I hope the Update to unsubscribe and send html from the index.
    thank you!

  • http://www.technaipc.co.il Denis

    I really appreciate what you are doing guys , i’ve been looking around at your website and i found it interesting and useful thanks to all of you.

  • http://egypt.gold-prices-day.com/%D8%A7%D8%B3%D8%B9%D8%A7%D8%B1-%D8%A7%D9%84%D8%B0%D9%87%D8%A8-%D8%A7%D9%84%D9%8A%D9%88%D9%85-%D9%81%D9%89-%D9%85%D8%B5%D8%B1 اسعار الذهب اليوم فى مصر

    awesome module!
    i tried it. so far a flawless script.

  • Pingback: AJAX Newsletter Module - BlackFlag

  • willy

    Awesome script, but i found one bug.. when any user click on unsubscribe link inside email, this will unsubscribe the first email in data base (the first ID), and not his email address.
    how can we fix this?!

    thanks

  • http://www.pc-israel.com PCIsrael

    Great website, it was actually quite real helpful. Thanks.

  • http://ww.sis.com Sis

    how can i connect it to my system.. i mean i have a project and i want this one to be connected how will I inser the email addresses in the database..

    sorry for the english

  • Daniel

    This script is excellent! thank you very much!
    I have it installed on my website.
    But when I create a category error charged (ERR). Please can someone help me.
    Thank you!

  • http://www.pcfix4u.com טכנאי מחשבים | תיקון מחשבים

    טכנאי מחשבים, טכנאי אמין ומקצוען, בעל ותק רב בשרות, תיקון מחשבים, תחזוקת מחשבים, מאז שנת 1985, לרשותכם תמיד – אלי דואק 052-389-0588.

  • http://NA JD

    Hi – great job with this script. Really like it and hoping to use it on my site.

    I do however have a problem when trying to amend the template for the newsletter. It doesnt seem to want to accept any changes and none of the images are showing on the emails that are sent out. Is there something simple I need to adjust to get these images recognised?

    Thanks
    JD

    • ray

      Images not showing – please advise on your solution!
      thanks

  • JD

    ignore my post – have figured it out!

    thanks
    Jack

  • http://bbpc-r.com טכנאי מחשבים | תיקון מחשבים

    אתר שמאגד בתוכו
    את כל מה שצריך לדעת לפני שמתקנים מחשב
    כדאי

  • Pingback: Cool iPhone Apps | Smashing Apps | Cool iPhone Apps | Download Vector & PSD Free » 20 Useful Ajax Tutorials

  • Pingback: Excellent Ajax Tutorial >> Webs Mine

  • steve

    Pls need help to it configure it on my wamp server , thankz

  • Pingback: 25+ Best Ajax Tutorials - MegaTeacher | Let's start learning MegaTeacher | Let's start learning

  • http://portal-pc.com טכנאי מחשבים

    man where can i learn AJAX lang? i will hapy if you learn me

  • Noah

    I have a problem with attachments, it never been sent with emails.