I use this code to send my contactform information to my mailbox.
But it won't work. I won't receive an e-mail.
Normal i use ASP.net but i'm learning PHP, so everyone's help is welcome!
<?php
$voornaam = $_REQUEST['naam'];
$from = $_REQUEST['mail'];
$tel = $_REQUEST['tel'];
$fax = $_REQUEST['fax'];
$bedrijf = $_REQUEST['bedrijf'];
$soort = $_REQUEST['soort'];
$bericht = $_REQUEST['bericht'];
$to = "benjamin@mijndomein.com";
$subject = "Emailbericht mijndomein.com";
$headers = "From:" . $from;
$host = "mail.mijndomein.com";
$username = "benjamin@mijndomein.com";
$password = "mijnpaswoord";
$message = "
U heeft een bericht ontvangen van het CONTACTFORMULIER \n
\n
$voornaam van het bedrijf $bedrijf ($mail) schreef het volgende bericht: \n \n
Omschrijving: $soort \n \n
$bericht \n \n
$bedrijf \n
$voornaam \n
$mail \n
$fax \n
$tel
**EINDE BERICHT**
";
mail($to, $subject, $message, $headers, $host, $username, $password);
?>
execute HTML file


