4 Replies Latest reply on Jan 20, 2005 9:37 AM by clau25

    Custom service for sending emails

    clau25

      I need to implement a custom service that must send emails on certain dates/times. My idea would be: the service starts a thread which has an infinite loop; in this loop it is checked if the System.currentTimeMillis() is equal with the time when a certain email must be send, and if yes, the email is sent.

      I figured out that this idea is not good because everything else in server becomes very slow (because of this infinite loop). Could anyone give me a hint how to solve that?

      Any help would be very much appreciated,
      Claudia