Send mail at diferent dates..

the mail() function

Moderators: macek, egami, gesf

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

php...

Postby ruturajv » Mon May 03, 2004 9:02 pm

php is script which is executed when a page is called....

hence its manual...

what you can do is set up a cron job... which invokes a "lynx" browser with url parameter as your address to the php script

ponka128
New php-forum User
New php-forum User
Posts: 2
Joined: Thu Dec 30, 2004 2:23 pm

How to send Email Daily

Postby ponka128 » Thu Dec 30, 2004 2:26 pm

Hi,
I have Created an Cron.php . And put my code of Email in that. Now wat to do that this code will activate automatically itsself daily.

Plz help me in this regard

Thanx
Imran

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Postby Alexej Kubarev » Thu Dec 30, 2004 2:28 pm

what OS are you running?

ponka128
New php-forum User
New php-forum User
Posts: 2
Joined: Thu Dec 30, 2004 2:23 pm

Postby ponka128 » Fri Dec 31, 2004 11:54 am

Hi,
Os : Linux
server : Apache

i see the Cron in the Cpanel. But i dunno wat to write in it. Should i write the link in it ??

plz help me in this regard
Thanx
Imran

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Postby Alexej Kubarev » Fri Dec 31, 2004 2:30 pm

well...you can try writing a link... ive never used CPanel.. sorry.. :(

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Postby ruturajv » Sun Jan 02, 2005 8:53 am

* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (1 - 7) (monday = 1)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)

for every 1 hr you can...

Code: Select all

* */1 * * * lynx -dump http://domain.com/path/to/file.php


Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 2 guests

cron