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?
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.
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)
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.
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.
It's something on my server causing it. I ran the program on other servers with no problems. I just don't know what.
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..
If your having problems, PM me and you could purchase super fast webhosting from me cheap, PHP supported.
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):
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 ..
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.
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/