Use mysql stored procedure to send emails

Posted on 2008-11-09
Medium Priority
Last Modified: 2012-05-05
Need example of how to use mysql stored procedure to send emails with all information coming from mysql database only.  Do not want to use php or other non sql method.  Will be sending email based on status of record (i.e., approved) and DateEmailSent is null.
Question by:two-chez
LVL 31

Accepted Solution

Frosty555 earned 500 total points
ID: 22918991
MySql is a database server. It alone does not have provisions for sending emails. You must use a technology other than MySql to send the email.

MySql is capable of writing records to tables, or even writing data to a text file on the server, but it cannot send emails. You would need to have some other program on the server watching for the changes and sending the emails.

Author Closing Comment

ID: 31514918
Thanks, makes sense.

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month15 days, 20 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question