| | |
Automatic email
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2006
Posts: 20
Reputation:
Solved Threads: 0
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
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
•
•
•
•
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
•
•
•
•
Sorry i didnt mention that the website sits on a windows platform machine.
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!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
Similar Threads
- setting up an automatic email reply from a form. (Site Layout and Usability)
- Automatic email creation in cpanel ----PHP (PHP)
- Automatic email reply to Form (Site Layout and Usability)
Other Threads in the PHP Forum
- Previous Thread: Need help with Random Divs code
- Next Thread: Diff. between PHP 4 and PHP 5 ?
| Thread Tools | Search this Thread |
ajax apache api array basics beginner binary broken cakephp checkbox class cms code codingproblem combobox cron curl database date display domain dynamic echo email error file files folder form format forms function functions google href htaccess html image include insert interactive ip java javascript joomla js limit link load login mail malfunctioning menu mlm mobile multiple mysql nodes oop outofmemmory paging parse paypal pdf php problem procedure query radio ram random recursion reference remote return script search server sessions sms source space sql syntax system table tutorial unset up-to-date update upload url validation validator variable video web webapplications websitecontactform youtube






