Thread: User Unknow !!

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    Brazil - Paraná
    Posts
    23
    Rep Power
    0
    Hello

    I'm tring a solution for a problem that I not sure if the solution
    is about PHP or Apache or Linux or something else

    I have a little PHP script that mail to anyone.

    It is working fine.

    But if the destination addr has a problem, I do not receive a reply
    from the destination server.

    This reply arrives at the ISP and I don't receive any kind of notification.

    The web server is an Apache/1.3.9 Server running at a Linux system and the PHP is Version 3.0.12

    Any help on this problem would be greatly appreciated.

    Rui Torres
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    60
    Rep Power
    15
    Definitely sounds like a php issue.
    first, to get a simple return for bad emails, make sure you have your From and Reply mail headers set.

    $headers = "From: me@here.comn";
    $headers .= "Reply-To: me@here.comn";

    If that doesn't work, check out the PHP discussion, there are some samples there that show you how to check for valid email addresses before the form is submitted.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    Brazil - Paraná
    Posts
    23
    Rep Power
    0
    Hi aarongb
    This message are there at PHP forum and at Apache too.
    The script is:
    <?php

    $Msg = "This is a test of the PHP email routinenn";
    $Msg .= "If the destination addr is unknow this email must returnnn";
    $Msg .= "to the addr at Reply-To parameter nn";

    $Subject = "PHP Email Test";
    $AddrTo = "unknowuser@xptokkyytt.com";

    $Others = "Return-Path: <adm@superencontros.com.br>n";
    $Others .= "Reply-To: <adm@superencontros.com.br>n";
    $Others .= "From: "PHP Email Test" <adm@superencontros.com.br>n";

    mail($AddrTo,$Subject,$Msg,$Others);

    ?>
    Thanks in advance,
    Rui Torres

IMN logo majestic logo threadwatch logo seochat tools logo