Results 1 to 2 of 2

Thread: php mail problem

  1. #1
    JWG
    JWG is offline
    Registered User
    Join Date
    Dec 2006
    Posts
    1

    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
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,496

    Default

    Please don't cross-post, especially using two different account names.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

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 & WHM Discussions
    Replies: 1
    Last Post: 06-12-2006, 01:14 AM
  3. Problem with PHP mail
    By salvatore333 in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 03-11-2006, 10:42 AM
  4. Problem with PHP and E-mail
    By tbutler in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 11-07-2004, 01:11 PM
  5. php mail() problem
    By simonlee in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 04-01-2004, 07:14 PM