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 89 Comments

Comment Page 2 of 2 1 2
  1. Yash Mistrey says:

    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

  2. Dian Erianto says:

    Thank you for the information. :)

  3. Vince says:

    Nice,i’ll test it out.

  4. Jon Davis says:

    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…

  5. hadi says:

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

  6. how to use WYSIWYG editor with this beautiful newsletter module?

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

    Thanks

  7. sanchy says:

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

  8. John says:

    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

  9. Dennis says:

    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/

  10. FireWolf says:

    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!

  11. Denis says:

    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.

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

  13. willy says:

    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

  14. PCIsrael says:

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

  15. Sis says:

    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

  16. Daniel says:

    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!

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

  18. JD says:

    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

  19. JD says:

    ignore my post – have figured it out!

    thanks
    Jack

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

Comment Page 2 of 2 1 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.