Quick Question Email Issue

When this is sent, the message is all one long sentence with no breaks, etc.

[php] $message .= "First Name: ".$_POST[‘firstname’];
$message .= "Last Name: ".$_POST[‘lastname’];
$message .= "Phone: ".$_POST[‘phone’];[/php]

How can I change this code to break each line when the email sends? Thx

Add line breaks to the code :slight_smile:

[php] $message .= "First Name: ".$_POST[‘firstname’] . “\r\n”;
$message .= "Last Name: ".$_POST[‘lastname’] . “\r\n”;
$message .= "Phone: ".$_POST[‘phone’];[/php]

Tried without success but this worked:

$message .= " \r\n";
$message .= "First Name: “.$_POST[‘firstname’];
$message .= " \r\n”;
$message .= "Last Name: “.$_POST[‘lastname’];
$message .= " \r\n”;


Sponsor our Newsletter | Privacy Policy | Terms of Service