does webhosting company matter?

Discussion in 'HTML & Website Design' started by Riots, Mar 4, 2008.

  1. #1
    Ok here it is I designed this website for someone right and the site works perfectly fine on my host and it works perfectly on his host since i uploaded it. Only that does not work is the contact form. And they are the same exact files. Could it be his host does not let him send mail. I have direct admin and he has cpanel if that makes any diffrence dont know. But Im familar with both. all this page is a html with a flash file on it and the other conatct.php pages .. what could be happening?
     
    Riots, Mar 4, 2008 IP
  2. PHPGator

    PHPGator Banned

    Messages:
    4,437
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    260
    #2
    Does the php file spit out an error? If so, can you show it here? I would perhaps contact the web host if you know it works at other places.
     
    PHPGator, Mar 4, 2008 IP
  3. Riots

    Riots Active Member

    Messages:
    374
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    83
    #3
    no it has a pop up and says email sent successfully..
     
    Riots, Mar 4, 2008 IP
  4. Dimensio

    Dimensio Greenhorn

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    20
    #4
    some hosts have crap versions of php or have it disabled.

    I was with network82, great php but you had to turn it on in the Cpanel --- something I didn't check for.

    PROBLEM :
    different MX email settings


    SOLUTION
    use sendmail.php clone in cpanel -- will be in the scripts folder
    use a standard one file php emailer
    use a premade script with capcha - http://www.freecontactform.com/contact-form.php (I havent tested that one)
     
    Dimensio, Mar 4, 2008 IP
  5. corneo

    corneo Peon

    Messages:
    82
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    is this something you made or are using got off the net?
    I'm having the same problem with a email uploader and have no clue why it would email the file.
     
    corneo, Mar 4, 2008 IP
  6. larrayd

    larrayd Banned

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Is there anythign to do with MySQL in your php file. Also, sometimes, you can't send emails with php to certain email addresses such as gmail.
     
    larrayd, Mar 4, 2008 IP
  7. corneo

    corneo Peon

    Messages:
    82
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It's something on my server causing it. I ran the program on other servers with no problems. I just don't know what.
     
    corneo, Mar 4, 2008 IP
  8. Riots

    Riots Active Member

    Messages:
    374
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    83
    #8
    Ok I just found out his host is godaddy and php safe mode in ON. Would that prevent it from sending emails? This is a pre-made script already. Works all good on my host but not on his..
     
    Riots, Mar 5, 2008 IP
  9. Hostable

    Hostable Guest

    Messages:
    76
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If your having problems, PM me and you could purchase super fast webhosting from me cheap, PHP supported.
     
    Hostable, Mar 5, 2008 IP
  10. corneo

    corneo Peon

    Messages:
    82
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Maybe this will help

    If you require special SMTP settings for mail to be sent
    
    If you have to manually specify the SMTP settings, you can do so with the following code. This is only recommended for advanced users.
    
    ini_set("SMTP","mail.MYDOMAIN.com");
    ini_set("smtp_port","587");
    ini_set("username","MYUSERNAME@MYDOMAIN.com");
    ini_set("password","MYPASSWORD"); 
    ini_set('sendmail_from', $sender_email);
    $send_status = mail($send_to, $email_subject, $msg, $headers);
    ini_restore('sendmail_from');
    
    Code (markup):
     
    corneo, Mar 5, 2008 IP
  11. Riots

    Riots Active Member

    Messages:
    374
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    83
    #11
    i dont need hosting my client might but i got that covered if he does.

    @corneo
    where would that code go??..

    I think its because he has php safe_mode ON and that has restriction on php scripts functioning right..
    I could be wrong ..
     
    Riots, Mar 5, 2008 IP
  12. Adam Hughes

    Adam Hughes Guest

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Don't know if this is helpful, but I used to have a windows 2003 server for hosting and I had email trouble (email was being received when it was sent through a form). I had it switched to linux and it worked instantly.
     
    Adam Hughes, Mar 5, 2008 IP
  13. corneo

    corneo Peon

    Messages:
    82
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I got it from the program php secured emailer from dragon. look at his troubleshooting questions

    http://www.dagondesign.com/articles/secure-php-form-mailer-script/
     
    corneo, Mar 5, 2008 IP
  14. PremiumHost

    PremiumHost Active Member

    Messages:
    307
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #14
    It could be mail() function is disabled or do not function.
     
    PremiumHost, Mar 5, 2008 IP
  15. Riots

    Riots Active Member

    Messages:
    374
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    83
    #15
    so either way its on his end because its the same exact files that i use on my host..
     
    Riots, Mar 6, 2008 IP