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

    Join Date
    Jul 2001
    Location
    USA
    Posts
    73
    Rep Power
    18

    mail() not working with ISP's mail server


    Hi,

    I have a curious problem I can't figure out. I have a small mail script on an ISP's server--voiceofreason.com--that uses php's mail function (PHP Version 4.3.2) to send out email. The script works fine and sends without errors to any name I send to it, including internal users (anyemail@voiceofreason.com).

    However, everyone receives these emails, except for the internal people, the ones with @voiceofreason.com addresses?

    When I send this same script using another ISP's server it delivers the mail to the @voiceofreason.com addresses just fine. So it can't be missing header info, or spam filters.

    Is there any reason why I can't send mail through php to addresses on the same ISP's mail servers?

    I can't figure out why these addresses won't go through, or even where they are going, no bounce backs either!

    any thoughts on even how I might problem solve from here would be a great help!

    thanks!


    PHP Code:

    //This script works great except that internally addressed emails never show up when sending from the same isp.

    //anyaddress@voiceofreason.com won't go through
    $email "info@voiceofreason.com";
    $subject "This is a test";
    $mail "My little mail test";
    $header  "From: Voice of Reason <bjones@howellmartin.com>\n";
    $header .= "Reply-To: [email]bjones@howellmartin.com[/email]\n";
    $header .= "Content-Type: text/plain\n";

    $mail_send mail($email,$subject,$mail,$header) or die(mysql_error());
                    
    if (
    $mail_send) {

        echo 
    "mail was sent out";
    }
    else {

        echo 
    "mail didn't go";
        

  2. #2
  3. It's only wrong if you're caught....
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Dec 2003
    Location
    Sydney, Australia
    Posts
    1,285
    Rep Power
    179
    I have no idea Why you script is not working but one thing you could try to do is to check if it is sending to an internal address and then submit the form to another server its not a very pheasable I dea but its the only thing I can think of.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    Canada
    Posts
    14
    Rep Power
    0
    Hi...

    You may try using SMTP class for that particular ISP.

IMN logo majestic logo threadwatch logo seochat tools logo