Need help "Warning: mail() [function.mail]: SAFE MODE Restriction in effect."

Discussion in 'PHP' started by saturn100, Jan 12, 2012.

  1. #1
    Hi
    I am running an server based auto responder script

    It was woking fine I tested it on one domain
    But when I went to move it to an other domain I ecountered a problem

    When a person enters their email address and hits submit they see this message



    Warning: mail() [function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE in /mounted-storage/xxxxxxxxxxxxxxx/autoresponder/functions.php on line 810

    That line is the code is:

    $result = mail($DB_EmailAddress, $Send_Subject, $Message_Body, $Message_Headers, "-f $DB_ReplyToEmail");

    It is registering the email addresses but not sending message out

    As I said it was running OK on the first domain and still is but cant work on the second
     
    saturn100, Jan 12, 2012 IP
  2. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #2
    your php safe mode is turned-on..

    you cannot use mail function while it's on..


    put this at the top of your script..

    
    ini_set('safe_mode','off');
    
    PHP:
     
    JohnnySchultz, Jan 12, 2012 IP