2 Replies Latest reply on May 22, 2008 11:34 PM by (Laurence_Lewis)

    send email based on date

    (Laurence_Lewis)
      Hi

      I have a registration and login system set up using ADDT. I used the expire function which is set to 365 days from the date a person registers on the site. What happens is that users who have registered suddenly find their logins no longer work (after the expired period).

      I want to set it up so an email is sent to the registered person 7 days before the login is set to expire.

      I don't know how to achieve this.

      I thought to set a new date; something like:

      $dateSend = new DateTime($row_rsmembers1['disableDate']);
      $dateSend->modify("-7 day");

      How do I set the email to send based on the date and is this actually possible?

      Any assistance or direction to help me get this right would be appreciated.

      Thanks

      Laurence