How to send automatic email alert if data not updated

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ammu
    New Member
    • Aug 2011
    • 78

    How to send automatic email alert if data not updated

    Hi friends,
    In my php site admin have to update contents in the site weekly. If he forgot to update data , I want to sent an email alert to him. How it is possible? Is it possible to sent mail from back end. I have googled and i got we can write trigger. but I dont know how to do that. anybody please help me.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Ya you can use your OS scheduling capabilities to do the triggering and then run a php script that does the logic to send the email. e.g on linux you can use cron to schedule the execution of a command say "php /yourCodeLocatio n/yourScript.php" . The command calls the php interpreter directly from cron. If you want to go through an application url instead to trigger it then you can use wget to request a php page url which would then trigger the code execution.

    Comment

    • Ammu
      New Member
      • Aug 2011
      • 78

      #3
      @r035198x thank you for your response. How can I set cron to shedule the execution? Is it possible to do the task daily?

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Yes you can schedule daily. How to do it depends on what your OS is.

        Comment

        • Ammu
          New Member
          • Aug 2011
          • 78

          #5
          hosting on Linux OS.

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6

            Comment

            Working...