0

I have a button follow on my website, you can toggle it on or off as much as you want. Each time it sends a notification mail to the followed people. I don't want him to be spammed.

So I want Play Framework not to send this mail twice (twice in a day, for example)

Is there any built-in mechanism or any library of play framework to do it?

Thanks !

EDIT : Preferably an external service, like Mailjet or mailchimp.

Julien D
  • 1,259
  • 9
  • 22

1 Answers1

0

Just save notification to DB instead of sending it immediately - so user can decide how often he want's to get it.

Next use Akka scheduler for sending many notifications in single emails from time to time.

biesior
  • 55,576
  • 10
  • 125
  • 182
  • I wanted to avoid coding this myself, I already had difficulties with schedulers ... http://stackoverflow.com/questions/19431049/play-closes-dispatchers-when-stopped – Julien D Jan 09 '14 at 09:59