Skip to Content Skip to Menu

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

Auto actions email with CB Subs plan information

  • msaonline
  • msaonline
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
8 years 2 months ago #284376 by msaonline
Replied by msaonline on topic Auto actions email with CB Subs plan information
Hi Krileon,
I've finally got around to upgrading to the latest nightlies in the sequence your prescribed, but I am still getting "string(99) ":: Action 41 :: Email failed to send. Error: You must provide at least one recipient email address."
Do you have any other suggestions?

Also - for new registrants that are waiting admin approval, is there any way to see what subscription plan they have selected during registration? When I click on the user it has "none" as the current subscription while they are awaiting approval, but I would like to be able see what plan they have selected somehow, before I approve them. I have checked in the "baskets" and "subscriptions" section of Paid Subs, but the user does not exist there until after approval.

Thanks, Liam.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 2 months ago #284392 by krileon

I've finally got around to upgrading to the latest nightlies in the sequence your prescribed, but I am still getting "string(99) ":: Action 41 :: Email failed to send. Error: You must provide at least one recipient email address."
Do you have any other suggestions?

Your action I'm guessing is not configured properly resulting in no To address being supplied. Are you trying to substitute in the users email address or manually supplying one to the To parameter? What trigger are you using?

Also - for new registrants that are waiting admin approval, is there any way to see what subscription plan they have selected during registration? When I click on the user it has "none" as the current subscription while they are awaiting approval, but I would like to be able see what plan they have selected somehow, before I approve them. I have checked in the "baskets" and "subscriptions" section of Paid Subs, but the user does not exist there until after approval.

You need to check under CBSubs > Baskets if they still have a basket pending payment. No payments or subscription rows will have been recorded yet unless they paid. Their basket may have expired though and will rebuild it when they attempt to login so it may not be displayed under CBSubs > Baskets.


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.

  • msaonline
  • msaonline
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
8 years 2 months ago #284437 by msaonline
Replied by msaonline on topic Auto actions email with CB Subs plan information

krileon wrote: Your action I'm guessing is not configured properly resulting in no To address being supplied. Are you trying to substitute in the users email address or manually supplying one to the To parameter? What trigger are you using?


I don't doubt that I have done something wrong, or have some erroneous/conflicting configuration somewhere on the site, but I am at a loss...

The "To" field is hard-coded to my email address. I have also tried using the

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 2 months ago #284457 by krileon
My guess is you may have a content plugin that's parsing and protecting email addresses, which could be breaking the To address. Try disabling 3rd party content plugins within Extensions > Plugins to see if it goes away. You can test your action by removing its trigger then clicking the link under the Global tab to directly access it. The substitutions won't work, but it's to ensure it actually is sending.


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.
The following user(s) said Thank You: msaonline

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

  • msaonline
  • msaonline
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
8 years 1 week ago - 8 years 1 week ago #286989 by msaonline
Replied by msaonline on topic Auto actions email with CB Subs plan information
Progressing well with this now, and emails sending successfully with content plugins enabled. The remaining problem is that the routine does not seem to be able to access the subscription plan information for the new user.
For example, the auto-action is set to run after a new registrant to the website and send an email to me containing their registration details. The following content is in the email:
Code:
Name: [NAME] Phone: [cb_homephone] Mobile: [cb_mobileno] Email: [EMAIL] Address: [ADDRESS], [cb_address2], [city], [country] Company: [COMPANY] Studying at (student members only): [cb_university] a) [cbsubs:if plan="2"]Applying as Member[/cbsubs:if] b) [cbsubs:if plan="3"]Applying as Associate[/cbsubs:if] c) [cbsubs:plans plan="2" output="name" /] (for testing purpose only)


Lines a and b never output as expected regardless of the registrant joining plan 2 or 3 at signup. Line c is there only to check if the content plugins works and is always functions as expected and inserts the name of plan 2 in the email.
I have checked the database directly and can see a new line in the subscriptions table for the new member and the correct plan number, so I can't figure out why the auto-action doesn't work as expected for line a or b.
I have tried inserting the same code in to an article on the website and it works OK (tells me whether I am in plan 2 or 3 when I log in).
Any clues? I have tried running the auto action at various trigger points without any change.
Last edit: 8 years 1 week ago by msaonline.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 1 week ago #287009 by krileon
CBSubs actions take place after registration. So using the after registration trigger won't give you any subscription information since it hasn't been created yet. You'd need to act on CBSubs triggers for that, but I don't think there is one specific to new registrations only but rather to subscription becoming active or not. Example as follows.

Plan Active
Global
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] Equal To PLAN_ID_HERE
2: [var2] Equal To A

Plan Expired
Global
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditions
1: [var3] Equal To PLAN_ID_HERE
2: [var2] Not Equal To A


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