Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2004
    Location
    Bolivia - Santa Cruz
    Posts
    4

    Default php mail problem

    I have a mail problem with my server. I am sending mail with my database and using this script.

    $headers .= "Return-Path: info@ofertazos.net\n";
    $headers = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    $headers .= 'From: info@ofertazos.net' . "\r\n" .
    'Reply-To: info@ofertazos.net' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();
    mail($destinatario,$asunto,$cuerpo,$headers);
    $fbO0O02 = mysql_fetch_row($rbO0O02);
    echo '- '.$destinatario.'<br>';
    }
    echo "<b>Total mensajes: $k</b>";
    cierraenlace($mc);
    ?>

    However my server is sending as nobody@servername.com
    I want to prevent sending as nobody, what do I do wrong ??

  2. #2
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Add a 5th parameter to your mail function: "-f yourmail@yourdomain.com"

Similar Threads & Tags
Similar threads

  1. nobody@ problem with php mail()
    By blueghozt in forum E-mail Discussions
    Replies: 3
    Last Post: 07-06-2009, 07:37 PM
  2. php mail problem
    By yourwayit in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-12-2006, 01:14 AM
  3. Problem with PHP mail
    By salvatore333 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 03-11-2006, 10:42 AM
  4. Problem with PHP and E-mail
    By tbutler in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-07-2004, 01:11 PM
  5. php mail() problem
    By simonlee in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-01-2004, 07:14 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube