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!

E-mail script doesn't work... php code is right, please help! [moved]

Discussion in 'E-mail Discussion' started by derekg1023, May 25, 2006.

  1. derekg1023

    derekg1023 Registered

    Joined:
    May 25, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    Hi,
    The people that are hosting me just upgraded the cPanel server and this is when everything went wrong. I have this php e-mail script and it just does not work. I had some people check the php and they say its right the only problem I can think of it with the new upgrade can someone help me fix this problem?

    cPanel version 10.8.1-RELEASE-113

    Heres my code also:
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    166
    You'd have to contact your host and check any error logs to which you might have access.

    Incidentally, your script is asking to be abused by spammers - santise POSTed variables!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hamper

    hamper Well-Known Member

    Joined:
    Apr 28, 2006
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    156
    Did you ever find a fix for this? All of my PHP mail scripts are doing the same thing.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. derekg1023

    derekg1023 Registered

    Joined:
    May 25, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    no.. I haven't asked my server yet. I'm still sure theres just something I need to check of or choose nothing server wide......
     
  5. hamper

    hamper Well-Known Member

    Joined:
    Apr 28, 2006
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    156
    Heres the fix that worked for me finally.

    rm -f /etc/eximmailtrap

    best of luck to you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. derekg1023

    derekg1023 Registered

    Joined:
    May 25, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    ooh! Can you please tell me where to put it?
     
  7. Adrnalnrsh

    Adrnalnrsh Well-Known Member

    Joined:
    Apr 6, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    AZ
    Thats a command you run in UNIX/Linux to remove a file via SSH console.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. derekg1023

    derekg1023 Registered

    Joined:
    May 25, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    ummm ok so where do I put it?
     
  9. Adrnalnrsh

    Adrnalnrsh Well-Known Member

    Joined:
    Apr 6, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    AZ
    You need to have SSH access to the server in order to run the command. That would require you to be familiar with SSH and Unix commands.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Adrnalnrsh

    Adrnalnrsh Well-Known Member

    Joined:
    Apr 6, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    AZ

    Is this your server or just is this a hosted website. You may need to contact support if your paying for webhosting.

    Do you have root access?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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