Skip to Content Skip to Menu

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

Email notification to all those who have commented on activity with CB Auto Action

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
9 years 3 months ago #268209 by timstohr
Hey Kyle,

I am starting to really appreciate the versatility of auto action...

You have a Push activity, which triggers whenever someone comments on an activity. I want to send to all the people an email who commented on it saying something "[commenter] commented on your post [link to post]"

How do I set this up? I am a little bit confused...

:)
I like also that you can set an HTML email to be sent and also via what it should be sent. If we could have this option as well in the new GJ that would solve my emailing problems.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #268219 by krileon
Only way to do that is use a Code action and write the PHP to grab all the activity comments and their users with a distinct select on the user id then loop them and send the emails. CB Auto Actions can not act on an array of data like that and like never will be able to as it has no idea that the trigger object is an activity entry and it needs to find all the comment users.

With that said I HIGHLY suggest you do not do this. You'll be spamming your users inboxes and you will, guaranteed, be black listed by every major email provider. What that means is all your emails will go to spam folders. If GMail blacklists you then you're pretty much blocked forever as getting off their list took us something like 2 years and that was just due to weekly newsletters.

GJ already can send HTML emails so unsure of your issue with GJ notifications. Edit the language strings and add whatever you like to them.


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.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
9 years 3 months ago #268223 by timstohr
Point taken about the email notifications.

Regarding the stuff with GJ, I mostly meant that CB auto action has the possibility to send stuff through SMTP mail instead of CB default.

I have some more possibility to beautify the emails if they are sent through SMTP (Email beautifier plugin by Techjoomla or CMandrill by Mandrillapp). It just makes the whole thing simpler since I can only change one single setting and then all my emails will look the same instead of editing the hundreds of different types of emails that my website sends out.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #268225 by krileon

Regarding the stuff with GJ, I mostly meant that CB auto action has the possibility to send stuff through SMTP mail instead of CB default.

CB can send through SMTP too. You just need to configure Joomla global configuration mailer settings to use SMTP and CB will use those parameters. GJ will not have individual parameters to override the mailer settings.


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.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
9 years 3 months ago #268226 by timstohr
Been there, done that... CMandrill and the stuff from techjoomla dont catch the CB emails unfortunately.

FYI here is some description of the stuff that I mean: compojoom.com/forum/117-newbie-area/17688-use-cmandrill-with-mailster-and-communitybuilder

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #268228 by krileon
I see, well it's possible for CMandrill to integrate with CB as we've mailer triggers to modify the mailer object. They are as follows.

Code:
$_PLUGINS->trigger( 'onBeforeCreateMailer', array( &$mail, &$from, &$fromname, &$subject, &$body ) ); $_PLUGINS->trigger( 'onAfterCreateMailer', array( &$mail, $from, $fromname, $subject, $body ) ); $_PLUGINS->trigger( 'onBeforeSendMail', array( &$mail, &$from, &$fromname, &$recipient, &$subject, &$body, &$mode, &$cc, &$bcc, &$attachment, &$replyto, &$replytoname, &$properties, &$error ) ); $_PLUGINS->trigger( 'onAfterSendMail', array( $mailsSent, $mail, $from, $fromname, $recipient, $subject, $body, $mode, $cc, $bcc, $attachment, $replyto, &$replytoname, $properties, $error ) );

Beyond that I can't suggest anything further as we've no plans to write an integration for CMandrill at this time.


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