Connecting Tech Pros Worldwide Help | Site Map

send email with schedule

zek2005
Guest
 
Posts: n/a
#1: Dec 22 '05
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,

Zek!

kevincw01
Guest
 
Posts: n/a
#2: Dec 22 '05

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.

John Meyer
Guest
 
Posts: n/a
#3: Dec 22 '05

re: send email with schedule


zek2005 wrote:
[color=blue]
> 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,
>
> Zek![/color]


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