Solved

Automatic email with php and mysql.

Posted on 2003-11-13
3
445 Views
Last Modified: 2012-06-27
I'm running PHP and a mysql database on Unix.

I need to send an automatic email each day with information gathered from the database and clean up the database with non active users.
 
I've done this before with MS SQL server but MySQL isn't able to do server jobs. And my knowledge of Unix isn't that good to write a script that makes this possible.

Does anyone have an idea in which direction I have to look in order to make this work.

Thx in advance
0
Comment
Question by:Jeroendp
3 Comments
 
LVL 13

Accepted Solution

by:
lozloz earned 175 total points
ID: 9738088
hi,

you need to set up a cron job to run each day. it's fairly simple to do:

http://www.webmasters-central.com/t/cron.shtml

you can set it to a run a php script to do all that

cheers,

loz
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now