Skip to Content Skip to Menu

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

CBsubs Mailer: Need help for setup

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 4 months ago - 11 years 4 months ago #228819 by dotcom22
CBsubs Mailer: Need help for setup was created by dotcom22
hello

I would like setup several Mailer (with hourly Cron job) for send a message when a CB field reach a specific value. For example I want setup 3 different Mailer who send a message when the field value is below 100, 50 and 10.

You can see my setup in the joined screenshot...

I tested and it seem this work, however I'm a bit annoyed with setting "Main Mailer Triggering Conditions". In fact I want send message as soon the value is reached. Is not really a matter in my case to setup something for "Automatically send message at following date" OR to "Relative to this date of the plans below".

The only possibility seem to set "5 minutes" and to relative to "Member Last Online Date" but this is not ideal because the CB value can be reached anytime. So if the user do not login for long time and if the value is below 100, no Mailer will be sent.

I wondering how to do this without need to setup a relative date...

Any clue ??


Other question:

My goal is to send these Mailer only one time when the value is reached. That mean I want send one message if:

- Value is below 100
- Value is below 50
- Value is below 10

Then later if the value increase up to 100 and more later decrease again below to 100, I need to send again message. What is absolutely not needed is to send every hours a message if the value is below 100.

Settings "Maximum messages per customer" OR "Maximum messages in total" are not useful in this case and I don't have any other choice to set "0" for an unlimited use..otherwise message will not be sent...

Any clue ??

Other question:

I would like also setup some Mailer who must be sent to specific date but this seem to not be possible. I'm suprprised to see no option are available for set for example to send a message the 12 June of each year.

I suppose is possible to set Auto-Action Email for that but I don't see how to do. In fact for this kind of task, I don't really need to use CBsubs Mailer because my goal is to send only timed message to specific users. Ideally I would like send these message only to user who are subscriber of some specific plan..but Auto-Action do not allow this...

I miss something ??


thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
Attachments:
Last edit: 11 years 4 months ago by dotcom22.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago #228834 by krileon
Replied by krileon on topic CBsubs Mailer: Need help for setup
There is no condition for it to be relative to a profile being updated or not. You need to use something like relative to login date, profile update date, etc..

How are you updating the fields value? If it's done in profile update where a trigger is being fired then it's probably better to use CB Auto Actions to send an email that conditions your field.

Settings "Maximum messages per customer" OR "Maximum messages in total" are not useful in this case and I don't have any other choice to set "0" for an unlimited use..otherwise message will not be sent...

"Maximum messages per customer" seams most ideal for your usage so it only sends 1 time and not every hour. Aside from that I don't really know what to tell you as if you use a less than usage it's going to send every hour with it set to 0.

I would like also setup some Mailer who must be sent to specific date but this seem to not be possible. I'm suprprised to see no option are available for set for example to send a message the 12 June of each year.

The mailer wasn't really designed to send emails whenever you feel like. It was designed to be paired with CBSubs subscription status so you could send expiration reminders, etc.. This will be improved in later releases after CB 2.0 where we'll have a scheduler API which will allow doing what you're wanting much easier. For now if you need to send an email on a specific date I suggest manually sending it using CB > User Management > Mass Mailer on your specific date.

Ideally I would like send these message only to user who are subscriber of some specific plan..but Auto-Action do not allow this...

You'd need to give the users a usergroup then adjust the Access parameter in your action or update a field with what plan they're subscribed to so you can condition it in CB Auto Actions. You could also try using a CB Query Field to query the database for what they're subscribed to and condition against it.


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 4 months ago #228844 by dotcom22
Replied by dotcom22 on topic CBsubs Mailer: Need help for setup

How are you updating the fields value? If it's done in profile update where a trigger is being fired then it's probably better to use CB Auto Actions to send an email that conditions your field.


Using a custom CB plugin who change value according to some taks made on a remote server partially integrated in CB.

"Maximum messages per customer" seams most ideal for your usage so it only sends 1 time and not every hour. Aside from that I don't really know what to tell you as if you use a less than usage it's going to send every hour with it set to 0.


Not sure to well understand the limitation possible. If I set 1 instead to 0, that mean the mailer will send only one time the message..and never more? That mean in my case, if the value is below 100, the message will be sent one time. Then if the value go up and go down days or weeks later, the message will not be sent.. That correct ?

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago #228847 by krileon
Replied by krileon on topic CBsubs Mailer: Need help for setup

Using a custom CB plugin who change value according to some taks made on a remote server partially integrated in CB.

I suggest having your plugin fire a trigger so you can act on that trigger with CB Auto Actions. Please see the below trigger tutorial for an example of how to fire a trigger. You can also review existing plugins for trigger usage (GJ fires a lot).

www.joomlapolis.com/support/tutorials/120-api-usage/18358-using-cb-triggers

Not sure to well understand the limitation possible. If I set 1 instead to 0, that mean the mailer will send only one time the message..and never more?

It means the mailer will send 1 time per user basis. So you'd create 3 mailers for your 3 different values and set them to send only once per customer.

That mean in my case, if the value is below 100, the message will be sent one time. Then if the value go up and go down days or weeks later, the message will not be sent.. That correct ?

Correct.


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 4 months ago - 11 years 4 months ago #228852 by dotcom22
Replied by dotcom22 on topic CBsubs Mailer: Need help for setup
Ok I found maybe another solution. Instead to send a message I can include a warning inside the field Message of an existant Auto-Action redirect. The problem is conditional substitution seem to be not allowed in Message field.

My goal was to set something like this:

[cb:if cb_field<="50"]my text [/cb:if]

But this code is partially stripped out I don't know why. The Message field is a simple textarea and are not wysiwyg...so is not a problem of Editor.

Could you confirm conditional substitution do not work in this place ?

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
Last edit: 11 years 4 months ago by dotcom22.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago - 11 years 4 months ago #228861 by krileon
Replied by krileon on topic CBsubs Mailer: Need help for setup
Looks like the message parameter thinks you're supplying HTML and trys to strip it. However HTML is perfectly allowed there so it shouldn't be doing that at all. Have confirmed that as a bug and will be fixed for next release.


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.
Last edit: 11 years 4 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum