228
Views
4
Comments
Solved
Sending email on specific time using timers

I am sending email using timer , but email sending is working properly but not on the given time , i created a server action where i wrote a logic to  send email on given schedule time  but the email is firing on current time . please suggest me proper logic 



Timers.oml
2020-09-18 09-37-36
Devendra Baghel
Solution

Hi Aman,

First of all you don't have any timer in timer section at design time and second i think you are creating the timer at runtime. 

You can create a timer at design time by using below links 

https://success.outsystems.com/Documentation/11/Developing_an_Application/Use_Timers/Create_and_Run_Timers

and then you can configure it so easily from your service center.

Hope it would help

Best Regards

Devendra

2022-08-19 05-46-27
Aman Vishwakarma

thanks for you response sir , actually i want to create  timer on run time not on design time . 

thats why i am using those tables to create timer 

2020-09-18 09-37-36
Devendra Baghel

Hi Aman,

As i understood correctly you need to set the next run of timer at runtime right?

And you are sending the mail at button click and that has nothing to do with timer see in below image 

I would suggest create a timer and in that timer use this Welcome send email action and then try to trigger the timer at runtime using the actions that you are using MetaCyclicJob and CyclicJobShared.

Best Regards

Devendra

2022-05-02 13-50-49
Paulo Ritto

Hi @Aman Vishwakarma ,

I think this is what you are looking for:



Just create a timer where you will send the email, and then in your schedule action you simple change the schedule property of your timer to the date the user entered, this will make the timer run at that time at runtime!

Let me know if this helps!

Paulo

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.