Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

cb Auto Action send mail afterCreateComment

9 years 3 months ago - 9 years 3 months ago #267473 by gianlucalog
cb Auto Action send mail afterCreateComment was created by gianlucalog
Hi,

I created a car action to send an email notification after create a comment to post.

I set the action in this way:

Trigger: (Activity) afterCreateComment
Type: e-mail
Condictions: nothing
Action:
If i set a mail recipient to
Last edit: 9 years 3 months ago by gianlucalog.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #267492 by krileon
Replied by krileon on topic cb Auto Action send mail afterCreateComment
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.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum