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.

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

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

  1. derekg1023

    derekg1023 Registered

    Joined:
    May 25, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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:
    36
    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!
     
  3. hamper

    hamper Well-Known Member

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

    derekg1023 Registered

    Joined:
    May 25, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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:
    6
    Heres the fix that worked for me finally.

    rm -f /etc/eximmailtrap

    best of luck to you.
     
  6. derekg1023

    derekg1023 Registered

    Joined:
    May 25, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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:
    6
    Location:
    AZ
    Thats a command you run in UNIX/Linux to remove a file via SSH console.
     
  8. derekg1023

    derekg1023 Registered

    Joined:
    May 25, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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:
    6
    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.
     
  10. Adrnalnrsh

    Adrnalnrsh Well-Known Member

    Joined:
    Apr 6, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    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?
     
Loading...

Share This Page