CC Comment Notifications

MT can be configured to send an email notification when new comments are posted. Sometimes it is useful to CC this notification to an alternate address. You can accomplish this with a teeny hack to lib/MT/App/Comments.pm as follows:

Find the first line and insert the second line directly beneath it:

my %head = ( To => $author->email, Bcc => 'email@domain.com',

FYI, you can alternately use CC and/or multiple comma-separated email addresses.

NOTE: There are TWO instances of this code in Comments.pm. Be sure to edit them BOTH!

If you are using MT-Blacklist, you can configure this plugin to add admins and send new comment notifications to them (in addition to or instead of the entry author). (thus rendering this hack unnecessary!)

About this Entry

This page contains a single entry by Kate published on January 7, 2005 11:15 AM.

MT 3.12 Upgrade was the previous entry in this blog.

Comment Styling with Simple Comments - Alternating Background Colors is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.