I strongly advise you don't do this. A PM or some sort of on-site notification system would be fine, but sending an email on every comment is going to spam your users resulting in your domain being blacklisted by mail servers causing all your emails to go into spam folders.
Regarding your action the user that writes the comment will be the user object of the trigger. This means your current usage is just going to email a user about their own comment. The trigger activity_onPushComments contains the stream object in addition to the comment object and maybe could be used to change the trigger owner so substitutions are from the stream owner instead of the user commenting, but it'd really be better to condition the comments variables so it's only doing this for specific streams (see the CB Activity - Comments system action for example).
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.