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.

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

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

  1. MarcelB

    MarcelB Well-Known Member

    Joined:
    Dec 29, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    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@ ?
     
  2. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    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.
     
  3. MarcelB

    MarcelB Well-Known Member

    Joined:
    Dec 29, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    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 ?
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    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