send email with schedule

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi Friends!!!

I want to create an option to the user to suscribe to a service that
sends an automatic mails everyday with information taken from a
database created in MySQL.

I have the form and the access with PHP to the database and I can send
an automatic mail at the moment that the users press a button to
activate the action, but I do not know how to do it everyday (or the
period of time chosen by the user).

Any help will be appreciatte.

Best regards,


Re: send email with schedule

You will want to do this in a cron job and using command line php.
i.e. "php -q mailit.php > /dev/null".  You'll want to google on how to
modify cron jobs if you're not familiar with cron.  It basically allows
you to schedule events based on time and date.  It is well suited for
daily tasks like this one.

Re: send email with schedule

zek2005 wrote:

Quoted text here. Click to load it

You can do this with either PHP or perl, scheduling the job ahead of time.

Site Timeline