The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disable phpmail for user

Discussion in 'CloudLinux' started by zontrakulla, Mar 4, 2015.

  1. zontrakulla

    zontrakulla Active Member

    Joined:
    Jan 16, 2008
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I want to disable phpmail function for one of my customer.

    I tried
    Code:
    /usr/bin/piniset -r 'disabled_functions = mail' -u USERNAME
    But it gives this error.
    Code:
    ERROR:Colon as a separator expected (disabled_functions = mail)!
    Thank you.
     
  2. MilesWeb

    MilesWeb Well-Known Member
    PartnerNOC

    Joined:
    May 23, 2012
    Messages:
    174
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Do you have suPHP configured on the server ? If yes, you can copy the server's php.ini under his root directory and remove mail function from disable_functions.
     
Loading...

Share This Page