Function in MySql to send EMAIL

-1

I want to trigger an email to some clients that I have registered in a table, I did not want to develop an application to stay running this task, I would like to do directly in the database, it is possible to create a function to send direct mail from the MySql? (I remember that in a company I worked with dba was able to do a function that triggered direct email by the bank, but the bank was oracle).

Does anyone have this code / tip?

    
asked by anonymous 23.02.2016 / 16:18

1 answer

2

In this answer you have explained how to do this: link

But this is strongly discouraged.

Sending emails is not the responsibility of the database. This will be very damaging to the bank, system, etc.

Making an app for this task, besides being ideal, will be easier than doing it in the bank.

Think back to this idea because it's really bad.

    
23.02.2016 / 16:47