My mail form that send a message to me is one long run-on sentance. How do I format it line by line.
I want
Movement code for my unit:: dogsofwar
My Username:: So and So
My email address:: xxxxxx@xxxxx
Unit I represent:: 3rd ID
Hex my unit is moving to and holding position:: N/A
Hex my unit is moving to and attacking from:: G4
Hex where defending unit is located:: F5
Unit we are attacking:: 716ID 1/726Grenadier
Line by line instead of one long run-on sentance.
Here is part of my code.
if ($op == "sendmovement") {
if ($sender_email == "") {
$email_err = "<center><font class=\"option\"><b><i>"._ENTEREMAIL."</i></b></font></center><br>";
$send = "no";
}
if ($send != "no") {
$sender_name = removecrlf($sender_name);
$sender_email = removecrlf($sender_email);
$msg = "$sitename\n\n";
$msg .= ""._UNITCODE.": $unit_code\n";
$msg .= ""._SENDERNAME.": $sender_name\n";
$msg .= ""._SENDEREMAIL.": $sender_email\n";
$msg .= ""._ATTACKINGUNIT.": $attackingunit\n";
$msg .= ""._MOVEHOLDHEX.": $moveholdhex\n";
$msg .= ""._MOVEATTACKHEX.": $moveattackhex\n";
$msg .= ""._ATTACKHEX.": $attackhex\n";
$msg .= ""._DEFENDINGUNIT.": $defendingunit\n";
$to ="donovan@3rd-infantry-division.net";
$mailheaders = "From: $sender_name <$sender_email>\n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail($to, $subject, $msg, $mailheaders);
echo "<P><B><font color=RED size=6><center>Movement Form has been sent</center></font></p>";