I am facing a problem with sending email about status. Basically I want to create script which send email every morning with some data from database. My goal is to write PHP file which will send email. I can create this file but I dont know how to call this file in right time. I guess I have to work with server configuration (installing email protocols or creating server's email) I have not been working with server on this level yet so I dont know how it works even in theory. I would appreciate if someone can advise me how it works and tell me the easiest way to create it.
Thank you for every answer.