shumit02 — 2012-05-30T04:38:03-04:00 — #1
i want to write a php mailing script in which i can send a mail 3 times in 3 days(1 mail in 1 day) automatically.
i think it can be done by Cron Jobs. But i don't have any idea about Cron jobs. Please tell me how will i do this?
cpradio — 2012-05-30T07:56:03-04:00 — #2
To put it simply, program your e-mail script in PHP like you normally would. Then instead of accessing it from a web browser, use SSH to login to your host account and run it from the command line
If it runs without any errors, then you can setup this command in a cron job (this will run every day of the week, every month, every day of the month at 00:00 midnight; so you will need to remove this cronjob at after 3 days) http://en.wikipedia.org/wiki/Cron
0 0 * * * php5 /path/to/your/script.php
starlion — 2012-05-30T08:46:16-04:00 — #3
(or you could make it 0 0 1,2,3 6 * and only do it the 1st, 2nd, and3rd of June, and then you would only need to remove it sometime in the next year.)
Be careful doing this though. This is a good way to get your account terminated if your mail is classified as spam.
shumit02 — 2012-05-31T03:57:14-04:00 — #4
shumit02 — 2012-05-31T03:57:47-04:00 — #5
How will i create time based trigger in mysql.
kduv — 2012-05-31T23:21:13-04:00 — #6