sending automatic emails

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tanmy_1999
Forum Newbie
Posts: 3
Joined: Tue Feb 24, 2004 12:42 pm

sending automatic emails

Post by tanmy_1999 »

Hello all,
I am new to this forum, but i got a question. I want to send a weekly email to a group of people whose emails are in MySql db. I am really stuck wiith it.
Any one knows how to accomplish this task.

Tanmay
User avatar
Fredix
Forum Contributor
Posts: 101
Joined: Fri Jul 18, 2003 2:16 pm
Location: Wehr (Eifel) Germany
Contact:

Post by Fredix »

It is pretty easy indeed, just have a look at http://de3.php.net/mail and http://de3.php.net/manual/en/function.mail.php !

Hope I helped a little
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

i dont think he is stuck on sending the mail, well maybe he is, but i think he is stuck on how to do it weekly....

If on Linkux you can use cron jobs.
If on Windows you can use the task scheduler to run your page every once every week.
jigaruu
Forum Newbie
Posts: 21
Joined: Wed Feb 18, 2004 11:46 pm
Contact:

Post by jigaruu »

i agree to illusionist,

use cron jobs on linux or task scheduling on windows, just write the mail command in any file and store the following location on to that task into cron or in task scheduler and the script will run at those times.

hope this explaing u better
tanmy_1999
Forum Newbie
Posts: 3
Joined: Tue Feb 24, 2004 12:42 pm

cron jobs

Post by tanmy_1999 »

thanks for your help guys...
tanmay
Post Reply