Primarily covering topics about affiliate & search engine marketing, micro & mobile blogging, making money online, search engine ranking & optimization, social media & networking, software & technology, web development & graphic design, and anything else on my mind.
Random header image... Refresh for more!

How Do I Email My Wordpress Commenters

phpmyadminHave you every wanted to send out an email to all your commenters in one shot? Maybe you have something real important to say, such as your blog site address will be changing soon, etc. For whatever the reason, there may come a time where you would like to send an email to all the people that have commented on your blog. This article will show you how you can quickly attain the email address of everyone who has commented on your blog. Please do keep in mind, I am providing this as a blogging tip, not a way to spam people. Remember who you are emailing, if you end up pissing your commenters off, they won’t comment anymore. If you do send out an email to your commenters, you should invite them to opt in and subscribe to a newsletter. All in all, if you choose to email all your commenters, make sure it is really important. Otherwise they will feel like you are spamming them. This article is designed for self hosted WordPress users who have access to phpMyAdmin.

  • Step One: Log into phpMyAdmin and click databases. You should see a screen like this:
    phpmyadmin-step1
  • Step Two: when you open the database view, select the database that runs your Wordpress install. If there is more than one database to choose from and you don’t know which one is for your blog, you can easily log into FTP and view the wp-config.php file off the blog root directory.
  • Step Three: Once you have the correct database open. Click on the “Browse Button” under the wp_comments table. Here is a screen shot:
    wp-comments
  • Step Four: After clicking the browse button, you should now be presented with a new screen. This new screen (depending on configuration) should display about 30 commenters per page. You can easily get them all to display on one page by adjusting the show number. If the page loads too slow you might want to divide the commenter entries into two pages. After the page loads then click print view. See screen shot below:
    wp-comments-show
  • Step Five: Now that you are displaying the list of commenters in print view, open up that trusty old copy of FrontPage or Dreamweaver. The print view page displays all the information in a standard HTML table. Copy the entire table and then paste it into a new page in FrontPage/DreamWeaver. You can easily do this by right clicking on the screen and selecting all and then copy. See screen shots below:
    select-all
    front-page
  • Step Six: Once you paste the entire contexts of the print view page into FrontPage or DreamWeaver, you can now start removing all the columns that aren’t needed. The only column you need is the column that has the email addresses in it. The final result is a table with only one column. See screen shot:
    email-list
  • Step Seven: Now that you have all columns removed except for the column containing the emails. You can now select all the content in the table and copy it to your clipboard and then paste it into a text document. I would suggest using TextPad. With TextPad, there are tools that will check for duplicate email addresses and remove them from your list. All in all, this is how you can extract all the email addresses from your MySQL database that runs your WordPress blog.

In order to email everyone in this list, you can use GMail, Outlook Express, etc.. Ideally it would be good to use TextPad to add a comma after each email address per line. Then from there you have yourself a flat file for importing into a newsletter program (either web based or desktop application). All in all… from this point on, you can do what you want with the list. I just wanted to save you a lot of time and show you how to extract the email addresses for your constructive and professional use. Have fun and feel free to drop me a comment with any questions you may have.

GarryConn

Popularity: 1% [?]

9 comments

1 David Cooley { 09.04.07 at 3:44 pm }

Nice tip. There is a way to make it shorter too. In Step 3, if you pick the 2nd button (structure) you can then open just the email address table for commentors (comment_author_email) and export it directly which would let you skip # 4, 5 & 6.

PS: I can not get this site to load in FireFox, I wonder if anyone else has that problem?

2 Garry Conn { 09.04.07 at 4:03 pm }

Nice revision! Thanks man.

As far as FireFox goes? Hmm… that is scary. I am viewing in FireFox right now and all seems fine. I had some issues earlier with SEOBook’s feed. It wasn’t loading and prevented the page from fully loading until it timed out. Since then I have removed SEOBook from the sidebar and things load up like a snap. Let me know.

3 David Cooley { 09.04.07 at 4:06 pm }

It is strange, it finally loaded. And now it is loading fine.

NOTE: If you use the revision I outlined, you can also get the DISTINCT list, meaning you will only get an address once no matter how many times they commented.

4 Garry Conn { 09.04.07 at 4:22 pm }

Very nice… and great contribution to the article.. I will be sure to add these parts in. Much better than trying to remove the duplicates manaully!

I think the loading issue was caused by the syndication of the SEOBook.com feed.

5 goldcoaster { 09.04.07 at 5:20 pm }

Are those email addresses correct. Is gmail the main email service people use nowdays?

6 Garry Conn { 09.04.07 at 8:48 pm }

The email addresses are as accurate as the commenter submits. Meaning, that depending of if your commenters add bogus email addresses will reflect whether it is accurate. Honestly though, I think for the most part most are going to be accurate.

As far as Gmail goes. I believe so. Gmail is very popular and its a blast for me to use. I love it. Gmail is also available if you want to use it under your domain name. A lot of people enjoy Gmail but feel it might not be professional to use because its not yourname@yourdomain.com. Gmail offers their free email service for people who want to use it under their domain name too! All in all Gmail is great. However, in a case like this… I would use some kind of subscription manager or if you have a lot of email accounts, batch them out into about 25 per sending.

7 Mani Karthik { 09.06.07 at 3:09 am }

Garry, Thanks much for this work around.

I had been searching for plugins that’ll help me do this, but i could only email registered users, not commenters.

I’m yet to try it out, thanks much!

Cheers!
Mani

8 Ramil { 09.06.07 at 7:49 am }

Why not just execute SQL query in your phpMyAdmin? Something like “SELECT email_field FROM wp_comments” – that would give you the lists of all emails.

Btw, would you not be accused of spamming for sending email to your commenters, assuming that they did not opt-in to receive email?

9 Evil { 09.07.07 at 8:21 pm }

Hopefully your commentors aren’t the type to put in false info, like I do with every single webpage that tries to find out what zip code I live in and how old I am.

This is a very valuable tip, thank you for sharing it!

Leave a Comment