Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Is it possible to stop one contact script sending as nobody.

Discussion in 'E-mail Discussion' started by MarcelB, Sep 8, 2007.

  1. MarcelB

    MarcelB Well-Known Member

    Joined:
    Dec 29, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    156
    Hi,

    I´ve read alot about the use of phpsuexec to stop everything on the server to send email as nobody, but I don´t want to do this because of the side affects/disadvantages.

    I have one user who has a contactform which sends as nobody and he keeps replying to it. So every reply he makes goes to nobody@

    Is there a way to stop just this contactform from sending as nobody@ ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Planet Earth
    If you don't want to have phpsuexec, then the contact form needs to be edited to specify a valid FROM address so the emails will be sent from that address instead of nobody.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. MarcelB

    MarcelB Well-Known Member

    Joined:
    Dec 29, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    156
    Hi WebScHoLaR,

    the script contains this piece of code:
    Code:
    $mailto = "info@domain.com";
    $mailfrom = "info@domain.com";
    $subject = "Contact form";
    
    And info@domain.com is a valid domain in cPanel.

    Is that what you mean or are you reffering to something else ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Setting the variables wont do much good unless they're actually used. Refer to the PHP Manual for the mail() function for more details.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice