Sending birthday emails based on MySQL query

3

I have to create a function on the server of my site that sends a birthday email, containing an HTML code, to birthday emails.

Detail: These birthdays are registered in a MySQL table that contains name, email, and date of birth. So if there are names on this table whose day and month are the same as today's date, send the birthday email to those names.

So, the task would be to integrate with MySQL and send these emails depending on the result of the query (day and month equal to the current date, send e-mail, otherwise it will not be sent). >

How can I do this?

    
asked by anonymous 20.10.2015 / 17:51

1 answer

1

People, I discovered the solution by doing a task and creating a page on my server.

When the page is accessed, the email is sent. And the task for him to open the browser on this page will always happen at 9am. This automates the page!

Thanks for your answers anyway.

    
20.10.2015 / 19:57