You can specify a From: field in the extra headers area of 
the mail() function. Additionally, you can specify the address 
you want bounces sent to by the same method (I think it's 
"bounces-to" or something like that).

J

-- 
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"Work now, freak later!"

> -----Original Message-----
> From: Martin Towell [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 05, 2002 3:24 PM
> To: 'Anthony Rodriguez'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Returned e-mail (PHP mail function)
> 
> 
> I believe the default from address is the user of the process 
> that sends the
> email, in this case, the web server.
> 
> (your isp's sys admins are going to be "happy" with you if 
> you have too many
> bounced emails.....)
> 
> -----Original Message-----
> From: Anthony Rodriguez [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 05, 2002 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Returned e-mail (PHP mail function)
> 
> 
> I just send my ISP the following question:
> 
> One of my PHP scripts automatically sends a "Thank You" 
> e-mail to users who 
> just registered. I use PHP's mail function.
> 
> If, during registration, the user enters the wrong e-mail address the 
> e-mail would, of course, be returned.
> 
> Who is the e-mail returned to? PHP's mail function, as far as I know, 
> doesn't have a "From" field.
> 
> Any comments?
> 
> Thanks!
> 
> Anthony F. Rodriguez
> ([EMAIL PROTECTED])
> 
> 
> 
> 
> -- 
> 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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to