I would be very concerned about putting the load of sending e-mails on my database server (small though it may be). I might suggest one of these alternatives:
- Have application logic detect the need to send an e-mail and send it.
- Have a MySQL trigger populate a table that queues up the e-mails to be sent and have a process monitor that table and send the e-mails.