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 ---- jay@email.com ---- 09/13/2015 ----
---- 2 ---- Josh ---- josh@email.com ---- 09/14/2015 ----
---- 3 ---- Steve ---- steve@email.com ---- 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?
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.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_11769-And-by-the-way-I-am-new-to-PHP.html

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.
http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html

PHP has a built-in mail capability.  YMMV, but it is often useful as-is.  
http://php.net/manual/en/ref.mail.php

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.
http://www.constantcontact.com/index.jsp

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:
https://codex.wordpress.org/Developer_Documentation

This also looks useful:
https://developer.wordpress.org/

And this is certainly good advice:
http://www.smashingmagazine.com/2012/08/how-to-become-a-top-wordpress-developer/

Hope that helps you get started! ~Ray
0

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
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.