Skip to Content Skip to Menu

Running Cron Jobs With Mailer

10 years 9 months ago #239521 by Strategisto2da
Replied by Strategisto2da on topic Running Cron Jobs With Mailer
Kyle, Selecting URL 3 worked and sent out the email.

Now, hopefully last question... I want this mailer to send automatically 5 minutes after each new subscriber has subscribed. Will URL 3 do this? Obviously I shouldn't have to trigger this manually...

Thanks, sorry for being dense.

Mike

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239556 by krileon
Replied by krileon on topic Running Cron Jobs With Mailer

Now, hopefully last question... I want this mailer to send automatically 5 minutes after each new subscriber has subscribed. Will URL 3 do this? Obviously I shouldn't have to trigger this manually...

Yes, you'd use URL 3. However I am unsure how you're going to add a delay to it. You could use the CBSubs URL to trigger a GET request on the mailer URL after every active subscription. This won't have a 5 minute delay, but it'd process the queue everytime a user subscribed.


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.

10 years 9 months ago #239559 by Strategisto2da
Replied by Strategisto2da on topic Running Cron Jobs With Mailer
Kyle, Still not understanding.

I'm trying to replicate this "use" case in the manual:

Mailer Use Case example #1 (MUC1) is based on the following concept idea:
• Welcome message sent 1 week after registration
Send your new users a followup message (in addtion to CB welcome
message) one week after their registration date.

Except that I selected 5 minutes after from the "Automatically send message at following date" pull down menu.

There has to be a way to trigger these automatically. Otherwise if I have to run the job manually then what good are the trigger times/dates?

I can set up a cron job via my host for daily - but it doesn't allow me to send it 5 minutes after...

???????

Mike

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239579 by krileon
Replied by krileon on topic Running Cron Jobs With Mailer

There has to be a way to trigger these automatically.

That's the entire purpose of CRON.

I can set up a cron job via my host for daily - but it doesn't allow me to send it 5 minutes after..

It's not going to send exactly 5 minutes after. Your daily CRON will process the queue daily and send emails daily. If you need to send an email to a user that early after subscribing you should use the Presentation tab emails or CBSubs Emails and just send an email when they immediately become active.


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