Re: mail(): error messages NOT back to wwwrun?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: mail(): error messages NOT back to wwwrun?

From: Alvaro G Vicario <alvaro_QUITAR_REMOVE@telecomputeronline.com>
Date: Mon Jul 04 2005 - 14:34:15 CEST

*** Daniel Loose wrote/escribió (Sat, 02 Jul 2005 20:25:12 GMT):
> a friend was so kind to host my php scripts. but when they use mail()
> or phpmailer (or whatever) to email e.g. to an invalid address, the
> returning error message appears in *my friend's email inbox*
> (recipient - or sender? - is "wwwrun" of my friend's machine). I
> guess you understand which problem I mean. To fix the problem, I would
> like to understand what is going on here - in the mail header, i did
> set replyto, x-sender and from to *my* email address, but it doesnt
> help. so where must I change what to free my kind friend from this
> "spam"?

If mail is sent through a local binary you can use fifth argument:

<?

$errors='postmaster@example.com';
mail($from, $subject, $cuerpo, "From: $from", "-f$errors");

?>

-- 
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Received on Mon Oct 17 21:01:59 2005