to address your current problem:
in that last line ($from = "From: no-reply@web-user.net\r\nReply-to: $name <$email>\r\n";), don't use = . Use .= instead.
more of an explanation...
= is the assignment operator. It takes the value on the right side, and assigns it to the variable named on the left side:
PHP Code:
<?php
$myVar = "hello"; // $myVar holds the value "hello"
$myVar = "goodbye"; // $myVar holds the value "goodbye"
$myVar = ""; // $myVar holds an empty string
As you can see in the example above, = does not preserve any values that the variable had before the assignment. It overwrites any such values, and they are lost.
. is the concatenation operator. It allows you to join two strings into one string:
PHP Code:
<?php
$myVar = "hello" . " " . "goodbye"; // $myVar holds the value "hello goodbye"
$myVar = "hello"; // $myVar holds the value "hello"
$myVar = $myVar . " goodbye"; // $myVar holds the value "hello goodbye"
When you want to append more text to the end of a string that is already assigned to a variable (like in the last line above), you can use the two operators together, like .= :
PHP Code:
<?php
$myVar = "hello"; // $myVar holds the value "hello"
$myVar .= " "; // $myVar holds the value "hello "
$myVar .= "goodbye"; // $myVar holds the value "hello goodbye"
Bookmarks