<?php
// Where email is sent
$to = 'webmaster@domain.com';
// From address
$from = '<noreply@domain.com>' . "\r\n";
// page visitor is sent after email is sent
$redirectURL = 'confirmation.htm';
// subject of the message
$subject = 'Email Message from Your Web site';
// start the message
$message = 'This message was sent via the form on your web site:' . "\n";
$message .= '---------------------------------------------------' . "\n";
// loop through posted values and add them to the message:
$msg.="1. Pakkealternativ: ".$_POST['pakkealternativ']."<br>\n";
$msg.="2. Fornavn: ".$_POST['Fornavn']."<br>\n";
$msg.="3. Etternavn: ".$_POST['Etternavn']."<br>\n";
$msg.="4. Person Nummer: ".$_POST['Person Nummer']."<br>\n";
$msg.="5. Adresse: ".$_POST['adresse']."<br>\n";
$msg.="6. postnummer: ".$_POST['postnummer']."<br>\n";
$msg.="7. poststed: ". $_POST['poststed']."<br>\n";
$msg.="8. telefon nummer: ". $_POST['telefonnummer']."<br>\n";
$msg.="9. email: ". $_POST['email']."<br>\n";
$msg.="10. kode: ". $_POST['kode']."<br>\n";
// send the email
$send = mail($to, $subject,$message, $from);
// redirect the user:
$redirect = header('Location: ' . $redirectURL);
exit;
?>
In line nu 5 that is
$from = 'noreply@domain.com>' . "\r\n";
change it to $from = '<noreply@domain.com>' . "\r\n";
even now also if it is not working
change it to
$from = '<noreply@domain.com>' . "\n";
This probably will work