Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

Send mail at diferent dates..

the mail() function

Moderators: macek, egami, gesf

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
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

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
ponka128
New php-forum User
New php-forum User
 
Posts: 2
Joined: Thu Dec 30, 2004 2:23 pm

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

what OS are you running?
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

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
ponka128
New php-forum User
New php-forum User
 
Posts: 2
Joined: Thu Dec 30, 2004 2:23 pm

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

well...you can try writing a link... ive never used CPanel.. sorry.. :(
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

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
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.