Roboweb Posted October 8, 2012 Share Posted October 8, 2012 Hi, I have a problem with a contactform om my website. When I try to fill in the form I get a message that something is wrong. I´m not familiar with php-script, so I don´t know how to correct it. But you guys know how to fix this problem. So please give me a hand and tell me how to do and what to write, so that the script works. The messages I get in the browser is this : Notice: Undefined index: Rubrik in \\atm.binero.net\content\56\161156\mywebsite.se\public_html\Test_2\mail.php on line 18 Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in \\atm.binero.net\content\56\161156\mywebsite.se\public_html\Test_2\mail.php on line 27 The file mail.php looks like this: LINE 18, $rubrik = $_POST["Rubrik"]; LINE 27, if (mail($till, $rubrik, $med, $header )) { If you know how to fix this, please let me know. Thank´s so far Link to comment https://forums.phpfreaks.com/topic/269218-server-error/ Share on other sites More sharing options...
trq Posted October 8, 2012 Share Posted October 8, 2012 Do you have a mail server installed and configured? Link to comment https://forums.phpfreaks.com/topic/269218-server-error/#findComment-1383656 Share on other sites More sharing options...
Roboweb Posted October 8, 2012 Author Share Posted October 8, 2012 Hmm...yes, I think so. Do you mean like smtp? Link to comment https://forums.phpfreaks.com/topic/269218-server-error/#findComment-1383669 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.