This project is read-only.

Sending emails AFTER spam filter

Topics: Business Logic Layer, Controls
Nov 8, 2010 at 5:28 AM

Hi Guys,

I have a couple of spam filters installed on my BlogEngine (akismet and forum<something>), they work very well, no spam gets approved.

But is it possible to configure BlogEngine to not send me a notification the comment is filtered as a spam?

At the moment I have tonnes of  the comments in my email every day, and 99% of them are spam... I'd like to be notified only if a "good" comment is approved by the spamfilters.

Is it possible? How? :)

Nov 8, 2010 at 5:55 AM

app_code/extensions/sendcommentmail.cs - add this after comment variable has been set:

// Do not send email if comment not approved
if (!comment.IsApproved)