comment reply notification, wordpress, change admin email address

Or, How to Fix that box999.bluehost.com Thing

This tutorial will tell you how to install the Comment Reply Notification plugin on your blog, as well as, how to ensure that when those notifications go out, they indicate the proper FROM email address, rather than whatever the crazy default is.

Things you’ll need:

  • 1 self-hosted WordPress blog, regardless of whether it’s hosted by Bluehost, HostGator, whatever
  • 1 cup of coffee (because I just like coffee, don’t you?)

 

Why Use Comment Reply Notification?

Since WordPress does not automatically notify commenters that their comments have been replied to (which is the ONLY reason I ever used Disqus but now that they hijack your blog with their own advertisements, links to other people’s posts, etc., I dropped them like it’s hot.) So I installed a plugin called “Comment Reply Notification”.

Why Do I Need to Do More Than Add the Comment Reply Notification Plugin?

When comment reply notification goes out, it uses the default admin email address from one of your WordPress files, which is whatever your host has decided that “root@localhost” means. Bluehost has decided that it’s the very first domain I set up with them. Which was a stupid test domain (“sactopuz”, if you must know – see? stupid name).

Therefore, the FROM email address that goes out to my readers is something like sactopuz@box242.bluehost.com. Blech! What does that have to do with Sticky Readers? For all I know, my readers totally ignore it, or stomp on it and trash it.

Install Comment Reply Notification Plugin

On Your Dashboard, Click on Plugins, then Add New, then search for “Comment Reply Notification” in the search box. Install the plugin by the author named “denishua” (It will probably be the first one listed). Alternatively, you can download it from the WordPress.org Plugin site.   It may warn you that it hasn’t been updated in 2 years, but it still works.

Configure Plugin Settings

On your WordPress dashboard, go to Settings, then Comment Reply Notification. This is where you can decide how to notify commenters, as well as configure the email text that goes out. Here’s what mine looks like:

comment reply notification, plugin

Create an email address called wordpress@yourdomain.com.

WordPress will look for this email address and if it doesn’t exist, then you can’t control notifications. I’m not sure if this is just for notifying you whenever you get a comment or if it’s also used when commenters get replies. Regardless, you’ll want this email address set up.

So go create an email address called “wordpress@whateveryourdomainis.com” already!

For example, I created one called wordpress@stickyreaders.com

Modify WordPress mailer php file.

Yes, this means going into your cpanel and editing code – eek! Don’t worry, I’ll hold your hand.

Locate wp-includes/class-phpmailer.php

Here, I’ll show you how I get there:

On my Bluehost cpanel, I scroll down to the Files section and click on File Manager.

bluehost cpanel file manager

Then I select my stickyreaders domain which takes me to my domain directory.

Then I double click on the wp-includes folder.

cpanel wp-includes folder

After opening up the wp-includes folder, scroll down until you find the file called class-phpmailer.php and click on that and then click the edit button.

Modify class-phpmailer.php to use proper email address.

Quick Instructions:

Change the $From and $Sender variables to your email address.

Detailed Instructions:

Scroll down (about 50-70 lines or so) until you find the code that declares the $From variable:

 /**
   * Sets the From email address for the message.
   * @var string
   */
  public $From              = 'root@localhost';

Change the lines for $From, $FromName and $Sender from ‘root@localhost’ or ‘Root User’ or maybe even blanks, to your particular admin email address. For example, my email address is margaret@stickyreaders.com so I changed the lines to this:

  /**   * Sets the From email address for the message.
   * @var string
   */
    public $From              = 'margaret@stickyreaders.com';

  /**
   * Sets the From name of the message.
   * @var string
   */
    public $FromName          = 'Sticky Readers';

  /**
   * Sets the Sender email (Return-Path) of the message.  If not empty,
   * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.
   * @var string
   */
  public $Sender            = 'margaret@stickyreaders.com';

I didn’t notice a difference changing the $FromName variable to be honest, but since it was there I changed it and it didn’t break anything, so whatever.

Be sure to save your changes and do a comment and reply test to see if the emails you get come from the right FROM address.

 

NOTE: You may or may not need reapply the changes to your class-phpmailer.php file when you update/upgrade your WordPress theme. The last time I upgraded (12/14/2012 to WordPress 3.5) I did not have to make those changes.

Good luck!

 

 

 

 

{ 0 comments }

How to Undo Anything on Your iPhone or iPad

undo on ipad, undo on iphone October 24, 2012 Other Tech

If you’re like me, and you’re probably not because I’m a weirdo, you are constantly flip-flopping on your stance on that whole Whales of War issue. And because of it, every time you start typing something on your iPhone or iPad, you rethink the whole thing and know you’re going to regret what you said [...]

Read the full article →

How to Schedule Facebook Posts from Facebook

schedule facebook posts October 16, 2012 Social Media

Did you even know you could schedule Facebook posts? First, you should know that you can schedule Facebook posts on both your personal wall and your admin fan pages, and you can schedule for the future as well as the past. Because who doesn’t want to post stuff in the past so no one will [...]

Read the full article →

Are Tablet Friendly Tools Like OnSwipe Stealing Traffic From your Site?

stealing page views, hijacking traffic, tablet friendly, mobile friendly September 6, 2012 blogging

Did you install anything on your blog to make your site more mobile or tablet friendly? Did you know these tablet friendly tools like OnSwipe could be stealing traffic and page views away from you? I spent several hours yesterday developing a tutorial explaining how to make your blog tablet friendly, only to discover that [...]

Read the full article →

How to Add Google Authorship to Your WordPress or Blogger Blog

google authorship, rel author August 7, 2012 Blogger

What Is Google Authorship? Google Authorship tells Google that the blog post you just wrote and published belongs to YOU, not that other guy who is out there scraping and stealing content for their silly auto-botted, keyword stuffed, backlink-riddled piece of fraudulent crap, pardon my French.

Read the full article →

WordPress: How to Add Social Media Icons to Your Blog Header

Thumbnail image for WordPress: How to Add Social Media Icons to Your Blog Header July 2, 2012 Social Media

One of the things that your blog must absolutely positively must MUST MUST have (in my humble opinion) is ease of access to your social media platforms for your reader. If you have a Facebook page (or a Twitter account or a Pinterest account, etc.), make it super easy for your reader to connect with [...]

Read the full article →

How to Add That ‘Read More’ Thing to Your Blog (WordPress, Blogger, HTML)

Thumbnail image for How to Add That ‘Read More’ Thing to Your Blog (WordPress, Blogger, HTML) June 22, 2012 Blog Beginners

Blogger calls it a “jump break”. WordPress calls it the “more tag”. Potayto, potahto. Maybe you don’t want your whole article taking up all that precious real estate on your front page. Maybe you think you get an extra page view if you make your readers click to another page. I don’t know that that’s [...]

Read the full article →

How to Start a Free Blog on WordPress

Thumbnail image for How to Start a Free Blog on WordPress June 10, 2012 Blog Beginners

There are millions of blogs out there on the internets. Which means that there are billions more to be made, if everybody wanted one. Which means some of you haven’t created a blog yet. It’s really easy. Here’s how:

Read the full article →

Public Domain Photos: Where and How to Get Them

Thumbnail image for Public Domain Photos: Where and How to Get Them May 29, 2012 blogging

Here we show you how and where to get public domain photos legitimately without having to worry about copyright infringement. There is so much highway robbery and plagarism and thievery and a whole bunch of other negative nouns to describe copyright infringement when it comes to blog post photos. However, you can use other people’s [...]

Read the full article →

WordPress: How to Make Your Blog Mobile Friendly

make blog mobile friendly, wptouch May 21, 2012 blogging

Having a “mobile-friendly” site simply means that your blog has been configured to appear differently on mobile devices. Better, theoretically. For example, a mobile format won’t have all your fancy schmancy banners and sidebars and such.  If your site is mobile friendly it is easier to read and easier on the eyes. Making your site [...]

Read the full article →