Click to See Complete Forum and Search --> : Automated reminder information


tony_parekkaden
October 16th, 2005, 03:27 AM
Hi all,

Is there any way to send mails to the mailing list people automatically according to the time prescheduled

(Using any script language)



Thanks in adv

Tony

PeejAvery
October 16th, 2005, 11:20 PM
Preset time will require a task scheduler. Look into CRON Daemon (http://www.google.com.pe/search?hl=es&q=CRON+daemon&btnG=B%C3%BAsqueda&meta=). As to the mailing, PHP and ASP can do it. I don't know ASP but here is PHP.

<?php
$to = "nobody@example.com";
$subject = "the subject";
$message = "Line1\nLine2\nLine3\nLine4"; // \n creates a new line.

mail($to, $subject, $message);
?>

PHP.net - Mail Reference (http://us2.php.net/manual/en/ref.mail.php)
PHP.net - Mail() Function (http://us2.php.net/manual/en/function.mail.php)

You can read the mailing list out of a database...

PHP.net - MySQL (http://us2.php.net/manual/en/ref.mysql.php)
PHP.net - MSSQL (http://us2.php.net/manual/en/ref.mssql.php)

or an actual file...

PHP.net - fgets() Funtion (http://us2.php.net/manual/en/function.fgets.php)

tony_parekkaden
October 17th, 2005, 01:49 AM
Hi peejavery thanks for your reply

If it s windows sever how it can be done



Tony

PeejAvery
October 17th, 2005, 07:39 AM
If it s windows sever how it can be done
What type of Windows server? How do you plan to record your mailing list?

tony_parekkaden
October 18th, 2005, 01:31 AM
Hi,

I think as you mentioned Crondaemon is applicable in linux type server only. But if i'm hosting my website in a windows based server then how i can schedule the timing



Tony

PeejAvery
October 18th, 2005, 09:00 AM
I think as you mentioned Crondaemon is applicable in linux type server only.
Actually, CRON is for all webservers.

boumerlin
October 18th, 2005, 05:47 PM
Alternately, if you have access to the server, you can just go right into
Settings -> ControlPanel -> Scheduled Tasks and set up a task.