Recent Blog Posts

Archives

Subscribe

Latest Tweets

Follow us on Twitter

WordPress Email Notification Plugin v2.1.1

The Word Press Email Notification Plugin has been updated to version 2.1.1.

Updates to this version:

  • Fixed issue some people were having with PHP passing variables
  • Added a second option for people to include wpemn_config.php if $DOCUMENT_ROOT isn’t available on their server

This is merely a bug-fix version for a people who were having issues with version 2.1 and doesn’t need to be installed if everything is running smoothly for you.

If you see anything that looks like a bug or the documentation needs corrected, please let me know.



65 Responses to “WordPress Email Notification Plugin v2.1.1”

  1. solace Says:

    i was wondering if you could help me fix the double-spacing of the content when included in the email, as well as why it comes through as having no sender, or a sender of “-” as well.

    thanks

  2. Dan Says:

    Hi!

    This thing is freaking AWESOME!

    Of course, being a grubby wanting-more type of guy, I yearn for more.

    We can easily import new email addresses, but would it be possible to implement a way to delete them via the admin interface? Sort of like a checkbox-next-to-emails-in-a-list and “Delete selected” type of deal. The only way I can see of removing emails right now is if the actual person goes through the unsubscription process. Not horrible, but it would be useful if the admin had control of the situation.

    Anyways, it works fine and dandy, thanks again for the great doodad.

  3. Brian Groce Says:

    Solace, contact me off blog.

    Dan, you’re in luck because that’s what I’m working on next.

  4. Dan Says:

    Dude! Suuuweet.

  5. Michael Shipley Says:

    Yo, I’m getting a php error message:

    PHP Warning: main(): open_basedir restriction in effect. File(/maillist/wpemn_config.php) is not within the allowed path(s): (/home/httpd/vhosts/…:/tmp) in /home/httpd/vhosts/…/wordpress/wp-content/plugins/ wp-email-notification/index.php on line 19.

    Do I take out $DOCUMENT_ROOT/ to fix this?

    Mike

  6. Brian Groce Says:

    Mike,

    That error is due to your server not allowing you to include from your web root.

    If your maillist directory is located in your wordpress directory, you can use line 22 instead…

    include (ABSPATH.”/maillist/wpemn_config.php”);

  7. John Arnold Says:

    Good job on the plugin and another great version. One question why does the plugin need its own unique values for the database and connectivity?

    Why can’t the index page in maillist read the Word Press config settings? At the very least couldn’t it share variable names so we could read the wordpress config or your standalone config file?

    Thanks
    John

  8. Brian Groce Says:

    John,

    Good question.

    With all of the changes to the plugin for WP 1.5, with a few changes wpemn_config.php will only be needed for the maillist index file. I plan on doing that, but just haven’t gotten around to it yet.

    wpemn_config.php is needed for the maillist directory for instances where the maillist directory is outside of the WP directory (would need to do a generic include to wp-config.php). I may change this someday (move the maillist directory into the WP directory), but there are other things I’d like to do first.

  9. Michael Shipley Says:

    Getting an returned mail error msg when the script sends new post email notifications. Looks like the headers aren’t getting sent properly and double slashes are being inserted in the links:

    Hi. This is the qmail-send program at http://www.olsen-twins-news.com.
    I’m afraid I wasn’t able to deliver your message to the following addresses.
    This is a permanent error; I’ve given up. Sorry it didn’t work out.

    :
    64.12.137.89 failed after I sent the message.
    Remote host said: 554-: (RLY:FA) http://postmaster.info.aol.com/errors/554rlyfa.html
    554 TRANSACTION FAILED

    — Below this line is a copy of the message.

    Return-Path:
    Received: (qmail 32229 invoked by uid 48); 10 Mar 2005 11:16:08 -0000
    Date: 10 Mar 2005 11:16:08 -0000
    Message-ID:
    To: email-removed
    Subject: Olsen Twins News: Download a New Free Olsen Music Video Featuring Lindsay Lohan
    MIME-Version: 1.0

    Content-Type: text/plain; charset=”utf-8″

    From: Olsen Twins News
    Reply-To: email-removed

    A new entry titled ‘Download a New Free Olsen Music Video Featuring Lindsay Lohan’ has been posted to Olsen Twins News.

    http://www.olsen-twins-news.com/wordpress//index.php?p=144

    ——————————————————

    You have signed up to receive these notifications.

    If you would like to unsubscribe, visit the url below:
    http://www.olsen-twins-news.com//maillist/index.php?action=unsub&addr=email-removed

  10. Berteh Says:

    Hello,
    First of all thanks for this great plugin, got it working in 15 sec on WP 1.5, on a free hosting service. cool!

    I’d like to be able to ask the users wheter they prefer to receive their notification in html of text… would you think of such a feature?
    Thanks again,
    Berteh.

  11. Patrice Says:

    I installed your plug-in and everything went smoothly until I tried it by subscribing to my own posts using a different email. It redirects to another site and when I went into my Email Notification options I get this.

    Update settings:
    Could not successfully run query (SELECT * FROM wp_email_list) from DB: Table ‘lumpianghubad_fil_ph.wp_email_list’ doesn’t exist

    I tried importing an email address but when I press the submit button the IMPORT word comes out. I followed the install instructions to the dot so i don’t know what the error is. can you help me? thanks!

  12. Patrice Says:

    sorry, okay now I have installed the plug-in again and i can access the options successfully but when I still tried to test the plugin by subscribing using a different email, it still went to the same website. my blog is located at http://lumpianghubad.fil.ph/blog. thanks!

  13. Brian Groce Says:

    Patrice,

    Your maillist folder is located here:

    http://lumpianghubad.fil.ph/maillist/

    For some reason when you point to:

    http://lumpianghubad.fil.ph/blog/maillist/

    You get redirected to:

    http://dancel.fil.ph/

    My guess is that it has somthing to do with how subdomains are setup on your server.

    Try changing the form action to:

    http://lumpianghubad.fil.ph/maillist/index.php instead of the relative path.

  14. Patrice Says:

    Hi Brian!

    Thanks a million! :) That was such a simple thing! Stupid of me not to have checked out the form. It’s working fine now. More power to you and your work!

  15. Patrice Says:

    it’s me again. sorry! i edited the form as you said which actually only needed a “/” but i have another problem because i have not been receiving the confirmation emails. i checked the reports on the admin settings and the email addresses are there which indicated they are not subscribers. is there something i need to do to activate the confirmation email? thanks :)

  16. Michael Shipley Says:

    Getting php error messages:

    PHP Notice: Undefined index: action in /home/httpd/vhosts/olsen-twins-news.com/httpdocs/maillist/index.php on line 23
    PHP Notice: Undefined index: id in /home/httpd/vhosts/olsen-twins-news.com/httpdocs/maillist/index.php on line 24
    PHP Notice: Undefined index: addr in /home/httpd/vhosts/olsen-twins-news.com/httpdocs/maillist/index.php on line 25
    PHP Notice: Undefined index: id in /home/httpd/vhosts/olsen-twins-news.com/httpdocs/maillist/index.php on line 24
    PHP Notice: Undefined index: email in /home/httpd/vhosts/olsen-twins-news.com/httpdocs/maillist/index.php on line 33

  17. Areca Says:

    Hi,

    I am having a heck of a time getting this working. I am sure it is something simple, but I am new to this. How do I select a database and stop this error?

    Thanks.

    No Database Selected
    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/buildd2/public_html/thejournalpodcast/maillist/index.php on line 38

    No Database Selected
    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/buildd2/public_html/thejournalpodcast/maillist/index.php on line 60

  18. Geoffrey L. Wright Says:

    Brian (or anybody else) — am noticing the same issue regarding header strangeness as Solace, but what I see varies depending on what mail client I’m using. Gmail does not correctly display the “From” information and instead displays it in the body of the message. Both Yahoo! mail and Mail.app on OS X are able to parse the header info correctly.

    Any resolution on this? If not I’ll dig and post the solution if I’m able to find it.

    Oh, and thanks for the way-cool plugin! I’ve been looking for something like this for WP for a while.

  19. Geoffrey L. Wright Says:

    Fixed the header issue. Changed the code in the “EMAIL HEADER” section of email_notification_2.1.1.php file to look like so:

    —-

    $header = “From: $site_name \n”;
    $header .= “Reply-To: $from_email\n”;
    $header .= “MIME-Version: 1.0\n”;
    $header .= “Return-Path: $from_email\n”;

    if ($html_email == ‘Yes’) {
    $header .= “Content-Type: text/html; charset=”" . get_settings(‘blog_charset’) . “”\r”;
    }
    else {
    $header .= “Content-Type: text/plain; charset=”" . get_settings(‘blog_charset’) . “”\r”;
    }

    —-

    Problem was just that the code was outputting some additional spaces that some clients were interpreting as the end of the header info. Removing these spaces fixed the issue — for me at least.

    Thanks again for the wonderful code!

  20. solace Says:

    hmm… when i make those changes i get this error when accessing my site:

    Parse error: parse error, unexpected ‘:’ in /home/httpd/vhosts/arcadefire.net/httpdocs/wp-content/plugins/wp-email-notification/email_notification_2.1.1.php on line 216

  21. solace Says:

    nm, i got it, when i copy/pasted it didn’t like your quotes, so i manually edited it, works fine now, now to test it out :D

  22. solace Says:

    SO close… now when i send out messages, the “Sender” field is parsing both the Site Name that i have defined in the options and the from email address.

    the resulting email lists it as from “Us@www.viachicago.org” whereas it should be Us Kids Know . when i send an email through the wordpress interface it works correctly.

    any idea Geoffrey? i appreciate the help on this :)

  23. solace Says:

    nevermind! fixed it. you need to use:

    $header = “From: $site_name \n”;

    for your first line :)

    now to try and fix the double-spacing of the Text-only emails

  24. solace Says:

    err, sorry:

    $header = “From: $site_name \n”;

  25. solace Says:

    ugh, it’s parsing out the $from_email variable, so i see it wasn’t your fault at all :)

  26. John Says:

    Almost everything works perfect. I can signup, I get a confirmation for subscription, I can admin the email notification, but I don’t get a email when there is a new post or reaction in the blog. What to do?

  27. Alex Says:

    Ih in my option menu i ged this errors

    What sholud i do?

    WordPress Email Notification Plugin v2.1.1 Admin Area

    Warning: main(): Unable to access /www/maillist/wpemn_config.php in /raid/www/lucrat.net/www/root/wordpress/wp-content/plugins/wp-email-notification/index.php on line 19

    Warning: main(/www/maillist/wpemn_config.php): failed to open stream: No such file or directory in /raid/www/lucrat.net/www/root/wordpress/wp-content/plugins/wp-email-notification/index.php on line 19

    Warning: main(): Unable to access /www/maillist/wpemn_config.php in /raid/www/lucrat.net/www/root/wordpress/wp-content/plugins/wp-email-notification/index.php on line 19

    Warning: main(/www/maillist/wpemn_config.php): failed to open stream: No such file or directory in /raid/www/lucrat.net/www/root/wordpress/wp-content/plugins/wp-email-notification/index.php on line 19

    Warning: main(): Failed opening ‘/www/maillist/wpemn_config.php’ for inclusion (include_path=’.:’) in /raid/www/lucrat.net/www/root/wordpress/wp-content/plugins/wp-email-notification/index.php on line 19

    Import Addresses :: Export Addresses :: Reports :: Email List Subscribers :: Update Settings

    Warning: mysql_connect(): Access denied for user ‘web’@'localhost’ (using password: NO) in /raid/www/lucrat.net/www/root/wordpress/wp-content/plugins/wp-email-notification/index.php on line 44

    Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /raid/www/lucrat.net/www/root/wordpress/wp-content/plugins/wp-email-notification/index.php on line 45

  28. BlackCat Says:

    Error:

    Table ‘blackcat_lx_ro.wp_email_list_config’ doesn’t exist

    How would this be fixed? What shoul I do?

  29. JohnM Says:

    I don’t get notifications when adding an entry with BlogJet. I guess this is because the option to notify subscribers is on the ‘Create New Post’ wordpress page.
    Is there a way to turn the nofications on by default, so Blogjet posts trigger an email too?

    Great plugin by the way.

  30. frankiejr Says:

    Hello,

    Thanks for the great plugin! I have one question:

    After clicking on the “Subscribe” button, should the plugin be building a page within the WordPress template? If it’s supposed to, I can’t seem to get it to work…I’ve tried changing the settings for when the maillist directory is inside the WordPress directory, but it’s still not working. My current setup:

    - WordPress directory is the root directory (http://domain.com/)
    - Maillist folder is in the root directory (http://domain.com/maillist/)

    Thanks!
    .frankiejr
    p.s. I didn’t include the URL because the site isn’t “live” yet, and is a project that I can’t link to until it goes live…sorry for that inconvenience :(

  31. echo Says:

    In the instructions, I see:
    9. Post…
    You’ll see a notify drop down in the Write area

    This sounds like it is needs to be manually selected within WP + that it will not function if using ecto for posting?

    I’d like to know if you know this before I spend time setting it up.
    thanks for your time, + the plugin!

  32. echo Says:

    Sorry for commenting twice, but it looks like I can do this by setting $notify == ‘Yes’. Would greatly appreciate specific code syntax, and also if you know any issues of this not being compatible with ecto, even with this variable set to “Yes”. Thanks again!

  33. Brian Groce Says:

    echo,

    The plugin will only work when you post via the built in form because there is a bug in WordPress.

    Once they fix the bug, it should work with editors like ecto and via email.

  34. ranti Says:

    I installed the plugin and it worked well. Thanks!

    I have a blog server that houses several blogs and wondering if I could install the plugin for each of the blog so the directory would be
    http://myblogserver.com/blog1/maillist/
    http://myblogserver.com/blog2/maillist/
    etc.

    As I understand it, this plugin will create tables with the same names for those blogs. I’d like to distinguish them between blogs and the only way I can think is by changing the table names on the installation script and all other files to match each of its perspective blog. Is this the correct way to do? Or is this not feasilbe?

    Thanks in advance.

  35. Brian Groce Says:

    Ranti,

    That would probably work, but it may take a bit of tweaking. In a future update I plan on making this easier to setup in the manner you’re talking about.

  36. Gerry Says:

    I’ve got the plugin install and all is good except it doesn’t send an e-mail when a new post is made. I can send an e-mail to the list from the options panel, but even when the drop down says yes to notify subscribers it just doesn’t send. I’ve uninstalled and re-installed it twice now. Everything else works great!

    Anyone have any ideas?

  37. Daveed Says:

    Thanks for this plugin, Brian!

    Dan (or anyone, really): You mentioned (on March 7) that subscribers can go through an “unsubscribe process”. I missed that somehow: How can they do that?

  38. Pete Says:

    Brian, what a wonderful plugin you have made, thank you very much. I second to Ranti and wait eagerly for a possibility to install it multiple times to the same database — I assume it means a lot of pondering on your side but I guess it is quite usual to have multiple blogs on a single database differentiated with prefixes..

  39. solace Says:

    question for you…

    currently when someone subscribes (or does any action for that matter), i have modified it so the page that loads looks the same as my website (for the most part).

    http://www.arcadefire.net/maillist/index.php

    but the only problem is it stops parsing the page as soon as the action is echoed onto the page. i need it to pass the closing div/footer stuff as well.

    any idea?

  40. Jeff Says:

    Currently, when I try to subscribe with anything other than a e-mail from my own site (anybody[at]linj[dot]us.to), I’m not able to receive any confirmation mail.

    It works fine with any other thing I’m trying to do with outside e-mails (retrieve passwords, etc.)… I’m using wpPHPmailer. Would that make a difference?

  41. Kim Says:

    I’m working on a client website and I have this plugin installed and working at http://www.myfastype.com/Blog/. Yet when you try to confirm your subscription, a blank page comes up with the words, “No input file specified.” HELP!!!! :-)

  42. Wade Emmert Says:

    This is a great plug-in. Thanks for all the hard work!

  43. Michiel Says:

    Hi! this is a GREAT plugin!!! One question: how do I wrap the e-mail handling (www.mysite.com/blog/maillist/index.php) inside my wordpress layout? Cheers, Michiel

  44. digo Says:

    hi. i have a problem with emails in other languag…
    this is what i get for new post:

    A new entry titled ‘????? ????’ has been posted to …

    any help?
    thnx

  45. Mike Martin Says:

    I really like the plug-in. Just one small wish. Could you make it possible to send the except in the e-mail? I personally would like to not send the entire posting to everyone, but would like to send the excerpt so that people can judge for themselves if they’re interested enough to click or not. So perhaps add a setting for Send Exceprt? Yes or No. Then people will have the option to send excerpt, full text, or both.

    Thanks for the great work! -Mike

  46. Brian Groce Says:

    Mike,

    This isn’t built in at the moment, but…

    Changing ” post_content ” to ” post_excerpt ” should work.

    Let me know.

    Brian

  47. Mike Martin Says:

    Thanks, Brian! I just got it working by changing two lines in your plugin code. I commented out the original, and replaced with the version with post_excerpt:

    // $query = "SELECT post_title, post_content FROM $wpdb->posts WHERE ID = '$post_ID'"; //
    $query = "SELECT post_title, post_excerpt FROM $wpdb->posts WHERE ID = '$post_ID'";

    and

    // $post_content = stripslashes($row->post_content); //
    $post_content = stripslashes($row->post_excerpt);

    It now sends just the excerpt. Thanks for the quick reply! -Mike

  48. Tony Zeoli Says:

    Hi,

    I installed 2.1.1 tonight on my server and am certain I did everythign correctly. My maillist folder is in my http://www.netmix.com/maillist and the wp-email-notifications folder is located at http://www.netmix.com/wordpress/wp-content/plugins/wp-email-notifications.

    The form script resides on the http://www.netmix.com/wordpress page in the sidebar.

    When I enter any email address to subscribe, it looks for http://www.netmix.com/maillist/index.php, but I get a “page not found error.”

    I changed mod to the wpemn_config.php to 666, entered all my database info correctly and installed and it installed fine. I can see my Options/Email Notification settings fine.

    The only thing I can’t do is enter an email address? What gives?

    Please let me know…thanks.

    Tony Z.

  49. Christiaan Says:

    I send the full text of my posts with my mailouts and most of my subscribers get raw html? Is there anyway to fix this? Also, a feature I’d like to see is being able to send an excerpt instead of the whole text or nothing. Thanks.

  50. ranti Says:

    Hi Brian,

    Our blog has more than one content contributors. When an email notification comes in, we don’t know who wrote the content unless we click on the link. We’d like to have the contributor’s name listed as well; something like “Ranti writes:” and then the content of the post below it.

    What do I need to do so the poster’s name is listed on the content? Or would this be part of the future release?

    thanks,
    ranti.

  51. Brian Groce Says:

    re: #49

    1. Choose text instead of HTML…my guess is that their mail client isn’t rendering HTML.

    2. Changing ” post_content ” to ” post_excerpt ” should work.

    re: #50

    You’d need to pull that info from the DB. This isn’t on the to do list at the moment.

  52. ranti Says:

    ===
    re: #50
    You’d need to pull that info from the DB. This isn’t on the to do list at the moment.
    ===

    Got it. Thanks!

  53. Tony Zeoli Says:

    Hi, I wrote post number 48 here but did not receive a reply. I see responses to 49 and 50. Can you post an answer for me to help me fix the problem. Thanks.

    Tony

  54. George Says:

    Thank you for producing the plugin. I was hoping you could help me get it up and running.

    When I run the install I get the following error:

    Warning: mysql_connect(): Access denied for user: 'fatpitch@localhost' (Using password: YES) in /home/fatpitch/public_html/maillist/install.php on line 200

    Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/fatpitch/public_html/maillist/install.php on line 201

    My WordPress was installed with Fantastico, so I’m not sure of the database details that I need for the install. The Fantastico install says that:
    An instance of WordPress was installed on http://fatpitchfinancials.com
    Full installation path: /home/fatpitch/public_html
    Public URL: http://fatpitchfinancials.com/
    Admin URL: http://fatpitchfinancials.com/wp-admin/
    Username: fatpitch
    Password: PASSWORD
    MySQL database: fatpitch_wrdp1
    MySQL user: fatpitch_wrdp1

    So my guess I should enter the following into the install screen:
    Database Name: fatpitch_wrdp1
    Database User: fatpitch_wrdp1
    Database Password: PASSWORD
    Database Host: localhost

    I’m not sure if the password part is right. Is the WordPress admin login password the same as the database password? If not, where can I find the database password?

  55. Felixe Says:

    Everything is working fine except in the admin interface of WP, if I click on any option I get this error:

    Could not successfully run query (SELECT * FROM wp_email_list) from DB: No Database Selected

    I guess I need to “open” my db when the admin page is loaded but don’t know how.

  56. Felixe Says:

    Sorry, just figured out how. For the record, I opened /wp-content/plugins/wp-email-notification/index.php and commented out line 19 but uncommented line 22. Now everything is sweet.

    Thanks Brian for such a great plugin.

  57. Unpaved Roads » Spanish (Mexico) translation of WordPress Email Notification Plugin Says:

    [...] in WP admin section I wasn’t able to get things working. It got fixed when I changed some lines in a file so everything was good. Next [...]

  58. Mark Says:

    Is the notification only triggered if the post comes from the web interface to WordPress? For example, will it send an email if you post to wordpress using the email interface or using a blogging client that connect using XML-RPC?

  59. Dave Says:

    Has anyone got this working with PHP 5?? I am having a prolem with the install.php not populating the wpemn_config.php with the variables while installing. Even when i put them manually into the file, it overwrites them next time i run install.php with blanks.

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘nobody’@'localhost’ (using password: NO) in /www/superkain.com/maillist/install.php on line 198

    i get a “nobody” error 10x for differing things. Any ideas?

  60. Dave Says:

    sorry, downloaded 2.1.1 and it’s fixed. Rock on!

  61. Eloy Ramirez Says:

    i read through all the posts applied the great knowledge but still getting errors any thoughts? this is what shows when i am in the email notification admin piece and i click on “update settings”. it reads taht the Table entry could not be found.

    Could not successfully run query (SELECT * FROM wp_email_list_config WHERE id = ’1′) from DB: Table ‘eloyram_meusemailnotifications.wp_email_list_config’ doesn’t exist

  62. Joaquin Says:

    Hi Brian- thanks for making your work available to the masses. Unfortunately, you have to field questions from newbies such as myself (but we appreciate it more than you know!). anyway, i install the plugin successfully (i think), but nothing happens when i ‘activate’ it in the WP plugin directory. I get this msg in the dashboard area (can you help?:

    WordPress Email Notification Plugin v2.1.1 Admin Area

    Warning: main(/maillist/wpemn_config.php): failed to open stream: No such file or directory in /var/www/www.fundindustry.info/public_html/wp-content/plugins/index.php on line 19

    Warning: main(): Failed opening ‘/maillist/wpemn_config.php’ for inclusion (include_path=’.:/usr/lib/php’) in /var/www/www.fundindustry.info/public_html/wp-content/plugins/index.php on line 19
    Import Addresses :: Export Addresses :: Reports :: Email List Subscribers :: Update Settings

  63. Ayu Says:

    Hi… your programm is awesome…but since a couple of days ago it didn’t work anymore…I’ve posted two posts buat no notification came put. It worked wonderful before…I didn’t change anything. Could you please help me?

  64. OptiNiche Blog Says:

    The Right Mailing List Script For WordPress

    Whatever your mailing list needs, there should be a plugin that will help you. In this entry we’ll look at 4 possibilities for WordPress and managing an email list or newsletter.

  65. Chad Holmen Says:

    The email notification does not appear to send mail. I’m using phpmailer. I’ve tried changing all mail( to phpmailer( in the notification directory under plugins, but no go.

    I know phpmailer is working correctly, registration and forgotten passwords are working correctly.

    Is anyone else using phpmailer and successfully gotten this to work?

Rss Feed Tweeter button Facebook button Technorati button Reddit button Delicious button Digg button Stumbleupon button