Blocking mail function

Discussion in 'PHP' started by webvinay, Jan 22, 2009.

  1. #1
    How one can block php mail function in linux cpanel?
     
    webvinay, Jan 22, 2009 IP
  2. t3nt3tion

    t3nt3tion Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to edit php.ini and add

    disable_functions = mail
     
    t3nt3tion, Jan 22, 2009 IP
  3. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #3
    execute it in the code

    ini_set("disable_functions", "mail")
     
    bartolay13, Jan 22, 2009 IP