January 2005 Archives

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!)