Auto Actions: Send E-Mail to user after xx Days without login

8 years 4 months ago #275501 by krileon

so the setting shown on my screenshots above are correct so far?

Looks like it, but you've Triggers and User values translated so I've no idea if it's set to None for Triggers and Automatic for User, but if it is then yes that's correct.

how can i access the link without being logged in on frontend?

You don't have to be logged. Ensure your actions access is set to Everybody and CB Auto Actions within CB > Plugin Management is set to Public.

there are also no mails sent when i hit the link

You may not have any users who meet the criteria. You need to test thoroughly and adjust as needed.


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: uncleron12345

Please Log in to join the conversation.

8 years 4 months ago - 8 years 4 months ago #275504 by uncleron12345
mhh i've checked it again..everything seems to be okay.
one of my test users has last visit date 2014-11-18 14:01:18...so the action should work, but doesn't :(

sorry for all these questions, but I'm just really confused with it. :blush: :lol:


EDIT:
ah now mails are sent, but there's something wrong with my receipients.

none of my field substitutions work there.

i tried both

To:
[cb:userdata field="email" user="#me" /]
[cb:userdata field="email" /]

Text:
Hello [cb:userdata field="username" user="#me" /]
Hello [cb:userdata field="username" /]

...

only my CC receives the emails (without text substitutions) :whistle:

Please Log in to join the conversation.

8 years 4 months ago #275512 by uncleron12345
problem solved.

there were some server delay or something, so the correct emails were sent a few hours later :silly:


thanks for your great help!!! works fine now! :)

Please Log in to join the conversation.

8 years 4 months ago #275513 by nant

uncleron12345 wrote: problem solved.

there were some server delay or something, so the correct emails were sent a few hours later :silly:


thanks for your great help!!! works fine now! :)


Great - glad this is working for you.

If possible can you post a summary of the use case you were trying to solve and the complete solution?
This way other can read and learn.
The following user(s) said Thank You: uncleron12345

Please Log in to join the conversation.

8 years 4 months ago - 8 years 4 months ago #275516 by uncleron12345
yes, of course. here you are: :)

1. I've configured a CRON which runs every week. URL Internal User found in Community Builder -> Plugins -> CB Auto Actions -> Parameters

2. I've created an Auto Action with:

Global Tab:
Type: E-Mail
Users: Automatic
Custom ACL: Everybody
Trigger: None, Internal Users (don't know if last is really necessary, but this was the last working configuration I tried)

Conditions Tab:
[cb:parse function="time"][lastvisitdate][/cb:parse]
Less or Equal to
[cb:parse function="time" time="-13 DAY"][cb:date format="Y-m-d H:i:s" /][/cb:parse]

Action Tab:
To: [cb:userdata field="email" /] (so the mail is sent to the associated user)
Subject: Whatever you want/need
Body: For "Hello Text" I've used the following substitution:

Hello [cb:userdata field="firstname" /] [cb:userdata field="lastname" /]

Parameters Tab:
Reload User: set to yes
Exclude Users: not needed here
Format Funktions: no
References: not needed here
Debug: temporarily set to yes for testing


with these settings it works for me. :) :)


Notes: For testing I changed the lastvisitdate of some users in database (create backup before!) and ran the CRON via URL manually.
The following user(s) said Thank You: beat

Please Log in to join the conversation.

8 years 4 months ago #275517 by nant

uncleron12345 wrote: yes, of course. here you are: :)

1. I've configured a CRON which runs every week. URL Internal User found in Community Builder -> Plugins -> CB Auto Actions -> Parameters

2. I've created an Auto Action with:

Global Tab:
Type: E-Mail
Users: Automatic
Custom ACL: Everybody
Trigger: None, Internal Users (don't know if last is really necessary, but this was the last working configuration I tried)

Conditions Tab:
[cb:parse function="time"][lastvisitdate][/cb:parse]
Less or Equal to
[cb:parse function="time" time="-13 DAY"][cb:date format="Y-m-d H:i:s" /][/cb:parse]

Action Tab:
To: [cb:userdata field="email" /] (so the mail is sent to the associated user)
Subject: Whatever you want/need
Body: For "Hello Text" I've used the following substitution:

Hello [cb:userdata field="firstname" /] [cb:userdata field="lastname" /]

Parameters Tab:
Reload User: set to yes
Exclude Users: not needed here
Format Funktions: no
References: not needed here
Debug: temporarily set to yes for testing


with these settings it works for me. :) :)


Notes: For testing I changed the lastvisitdate of some users in database (create backup before!) and ran the CRON via URL manually.


Thanks for posting ....

You might want to rethink your conditions so you avoid spamming people that do not login every week. Not sure how you woul ddo this, just posting food for thought comment.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.182 seconds

Facebook Twitter LinkedIn