Auto Send Email notification to Specific SQL Table Column?

Hi, is it possible to send email notification to specific sql table column? automated sql query or php or js etc...

let say i have a table column named user id, name, email & expired date

---- USER ID ---- NAME ---- EMAIL ---- EXPIRED DATE ----
---- 1 ---- Jay ---- ---- 09/13/2015 ----
---- 2 ---- Josh ---- ---- 09/14/2015 ----
---- 3 ---- Steve ---- ---- 09/13/2015 ----

Open in new window

so if Name = Jay which has user id = 1 reached EXPIRED DATE = 09/13/2015 then Notification will send an email to specific group like admin, editor and author(WordPress Groups) or specific multiple emails that Name = Jay with user id = 1 has been expired.

and if possible will send to users email also.

thank in advance
Gee Jay AlmestasAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
Yes, it's possible.  But this is not really a question with an answer, so much as a requirement for application development.  There are a lot of moving parts.   I'll try to help you find some of the pieces, and I'll also understand if you decide you want to hire a professional instead of trying to learn all of this yourself!

If you're new to PHP and want to learn the language, this article can help you find dependable learning resources.

The general design for something like this would be a SQL query to SELECT the correct rows.  The query would identify the expired date and would retrieve the row(s) containing expired dates.  Date handling in PHP and MySQL is explained in this article.

PHP has a built-in mail capability.  YMMV, but it is often useful as-is.

But dealing with spam filters can be a full-time job.  Sometimes you will need to connect to a mail server or use a mail API like ConstantContact.

Since this is a WordPress app, you will need to become familiar with not only PHP and MySQL, but also the "WordPress way" of doing things.  Here is a link to some of the required reading and reference materials:

This also looks useful:

And this is certainly good advice:

Hope that helps you get started! ~Ray

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.