[PHP] Newbie Mail() Question...

2002-11-27 Thread Chase
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




RE: [PHP] Newbie Mail() Question...

2002-11-27 Thread Rich Gray
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




[PHP] Newbie mail () question

2002-11-22 Thread Duncan Ellwood
I have just built a simple formmail script that validates certain fields and
then if alls well mails the information to the client's email addressand
displays some confirmatin html. This is all fine except for one minor issue.
When I collect the email to check it looks OK etc the header From : in
Outlook Express gives the www.servername.com

Can I personalise this a bit to display the From:  as the email address that
the user has supplied i.e  $Email

I'm v. new to this so any help appreciated!

TIA



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




RE: [PHP] Newbie mail () question

2002-11-22 Thread Cesar Aracena
Why don't you send your mailing code so the rest of us can see it, help
you and maybe even learn something from you too...

Cesar L. Aracena
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(0299) 156-356688
Neuquén (8300) Capital
Argentina


-Mensaje original-
De: Duncan Ellwood [mailto:[EMAIL PROTECTED]] 
Enviado el: viernes, 22 de noviembre de 2002 13:30
Para: [EMAIL PROTECTED]
Asunto: [PHP] Newbie mail () question

I have just built a simple formmail script that validates certain fields
and
then if alls well mails the information to the client's email addressand
displays some confirmatin html. This is all fine except for one minor
issue.
When I collect the email to check it looks OK etc the header From : in
Outlook Express gives the www.servername.com

Can I personalise this a bit to display the From:  as the email address
that
the user has supplied i.e  $Email

I'm v. new to this so any help appreciated!

TIA



-- 
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




Re: [PHP] Newbie mail () question

2002-11-22 Thread Steve Keller
At 11/22/2002 04:30 PM, Duncan Ellwood wrote:


Can I personalise this a bit to display the From:  as the email address that
the user has supplied i.e  $Email


You can specify the FROM field in the headers before you call the mail() 
function.

It's all in the manual.

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

See Example #2.
--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
907.770.6200 ext.220
907.336.6205 (fax)
Email: [EMAIL PROTECTED]
Web: www.healthtvchannel.org


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