Email address for comment moderation

Mar 4, 2010 at 12:22 PM

Hi

I am trying to get comment notifications to go to either the email of the Administrator or the Editor of the post but it always goes to the email address set up in the main 'Settings' section.  This is not ideal.

I am using 1.6 so I have a feeling that many of the solutions to this I have seen in the forum may not be valid. Can someone help?

Thanks

Clive

Mar 4, 2010 at 11:06 PM
Edited Mar 4, 2010 at 11:08 PM

I'm just having a look for you...

The 'SendCommentMail.cs' extension seems to be the one doing the action.  If you're comfortable with editing C# code then you can do the following:
(line numbers assume you haven't modifed this file before)

Line 50: change 

mail.To.Add(BlogSettings.Instance.Email);

to

mail.To.Add(post.AuthorProfile.EmailAddress);

And that should do it - you'll have to test it and let me know :)