Jump to content

Server Error


Roboweb

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.