33
Views
3
Comments
Solved
Prevent email to be sended multiple times
Application Type
Traditional Web

Hi all,

Im a beginner to outsystems and im stuck with a small problem.

I want to send a mail to somebody if the currdate > the date i've inserted. I want to do it with a timer who checks every night if the currdate > the date i've inserted. But if it is, i want to send an email just one time and not every night. Can someone help me on the way?

thanks in advance!

UserImage.jpg
Sneha Kumari
Solution

You can create one flag in database "Email_Sent"(Boolean data type).

If the email is send then make this flag as true in the database.

And add a filter on your query like - "Email_Sent = False".

This will solve your issue. 

UserImage.jpg
Sneha Kumari

Please find attached the oml for this. Hope this helps.

SendEmailOnce.oml
UserImage.jpg
Faissal Berrhout

Thank you very much this helped me! Sorry for the late reaction i thought ive already responded, but i didnt. 

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