I cannot find any error but the server says there is a error line
1, please solve it
<?php
function mail(){
$mail_date = date('l dS of F Y h:i:s A');
$email_url = $_SERVER['PHP_SELF'];
$email_ip = $_SERVER['REMOTE_ADDR'];
$to = '[email protected]';
$subject2 = "Email Subject";
$email = "The following page, $email_url , was accessed. IP: $email_ip Date: $mail_date This is an automated email! DO NOT REPLY!";
$from = "[email protected]";
$headers1 = "MIME-Version: 1.0rn";
$headers1 .= "Content-type: text/html; charset=iso-8859-1rn";
$headers1 .= "To: ".$to."rn";
$headers1 .= "From: ".$from."rn";
$headers1 .= "Reply-To: ".$from."rn";
mail($to, $subject2, $email, $headers);
}
?>
Admin Edit: Adjusted code so it’s segmented into multiple lines for readability. Posting the entire code block in one line is not a good way to ask for assistance, nor does it make the code readable.