New line not working...
Posted: Wed Feb 08, 2012 3:01 pm
This code does not seem to want to display a new line with echo. Any suggestions would be appreciated.
<?php
$to = "To: example@test.net";
$subject = "\nSubject: Test";
$message = "\nMessage: hello";
$headers = "\nFrom: webmaster@example.com" .
"\nReply-To: webmaster@example.com" .
"\nX-Mailer: PHP/" . phpversion();
echo $to, $subject, $message, $headers;
?>
<?php
$to = "To: example@test.net";
$subject = "\nSubject: Test";
$message = "\nMessage: hello";
$headers = "\nFrom: webmaster@example.com" .
"\nReply-To: webmaster@example.com" .
"\nX-Mailer: PHP/" . phpversion();
echo $to, $subject, $message, $headers;
?>