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?