mail(): error messages NOT back to wwwrun?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Daniel Loose

    mail(): error messages NOT back to wwwrun?

    Hi,

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

    Thank you!
    Daniel
  • Alvaro G Vicario

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

    *** Daniel Loose wrote/escribió (Sat, 02 Jul 2005 20:25:12 GMT):[color=blue]
    > 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"?[/color]

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

    <?

    $errors='postma ster@example.co m';
    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
    --

    Comment

    Working...