Er yea - just call the mail() function at the appropriate time in your
script...

http://www.php.net/manual/en/function.mail.php

However IMO if you need to log this sort of information then using a
database is far more appropriate than sending emails - especially on a busy
site...

Rich
-----Original Message-----
From: Chase [mailto:[EMAIL PROTECTED]]
Sent: 27 November 2002 14:24
To: [EMAIL PROTECTED]
Subject: [PHP] Newbie Mail() Question...


Is there a way to have an email sent to a specified email address either
when a page is accessed, or when a file is downloaded?

Maybe I should just be logging the info into a table?

Basically, I am trying to set up a secure site that would send the sysadmin
an email when a file has been downloaded with reference to the page title
and/or filename.

I have a feeling that this may be a bit too complicated for a newbie like
me...

...Suggestions?


Chase




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to