Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- mail(): error messages NOT back to wwwrun?
- Daniel Loose
July 2, 2005, 8:25 pm
rate this thread
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
Re: mail(): error messages NOT back to wwwrun?
If mail is sent through a local binary you can use fifth argument:
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