Jump to content

[SOLVED] What Am I Missing?


refiking

Recommended Posts

I am trying to place line breaks in a mail script.  Everytime I send the email to myself, there is no line break.  Here is the code:

<?php

$to = "[email protected]";
$subject = "Test mail";
$one = "Hello! This is a simple email message.";
$lb = "<br>";
$two = "Just checking to see how this turns out.";
$message = $one . $lb . $two;
$from = "[email protected]";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>

 

Whenever I get the email, here is how it appears.

 

Hello! This is a simple email message.<br>Just checking to see how this turns out.

 

Link to comment
https://forums.phpfreaks.com/topic/84125-solved-what-am-i-missing/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.