Automatic email

Reply

Join Date: Sep 2006
Posts: 20
Reputation: solomonski is an unknown quantity at this point 
Solved Threads: 0
solomonski solomonski is offline Offline
Newbie Poster

Automatic email

 
0
  #1
Nov 2nd, 2006
Id like to generate an automatic email at certain times of the week from my website to certain users. i.e at 12.30 on wednesday id like an email reminder sent to user example@example.com. Can anyone point me in the right direction
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 348
Reputation: paradox814 is an unknown quantity at this point 
Solved Threads: 4
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: Automatic email

 
0
  #2
Nov 2nd, 2006
you need to set up a cron job (or crontab), make sure your webserver allows you to run a cron job, if so look in your control panel for how to set it up, if it's not in there then log in via SSH and type "man cron" to get the man pages. Crons can be difficult to set up so try searching the web for some tutorials or asking in the linux forums for how to set up this particular cron job

Originally Posted by solomonski View Post
Id like to generate an automatic email at certain times of the week from my website to certain users. i.e at 12.30 on wednesday id like an email reminder sent to user example@example.com. Can anyone point me in the right direction
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 20
Reputation: solomonski is an unknown quantity at this point 
Solved Threads: 0
solomonski solomonski is offline Offline
Newbie Poster

Re: Automatic email

 
0
  #3
Nov 2nd, 2006
Sorry i didnt mention that the website sits on a windows platform machine.
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,075
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: Automatic email

 
0
  #4
Nov 3rd, 2006
Originally Posted by solomonski View Post
Sorry i didnt mention that the website sits on a windows platform machine.
The windows scheduled tasks manager works the same as cron. You can set up the task to run your php script.

If you want a purely web based solution take a look at this article in my blog: http://fijiwebdesign.com/content/view/86/77/

You could use the method mentioned there, with a bit of php like:

pseudo code:

[PHP]$query = "select from my_tasks where time < time() and complete = false".
$uncomplete_tasks = query($query);

foreach ( $uncomplete_tasks as $task) {

// carry out task
// for example if you list php scripts to run.. do something like
exec("wget http://example.com/$task.php");
// then update the database, task success, or fail etc.

}[/PHP]
Last edited by digital-ether; Nov 3rd, 2006 at 4:45 am. Reason: typo
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 20
Reputation: solomonski is an unknown quantity at this point 
Solved Threads: 0
solomonski solomonski is offline Offline
Newbie Poster

Re: Automatic email

 
0
  #5
Nov 10th, 2006
Many thanks for that
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC