I created a form in flash. The user can fill out each field of the form and submit the information to the $sendTo email address just fine, however, I receive the email section, $message, all jumbled up! I need to put a line break between each section so that the email I receive is legible.
I want each variable to appear on its own line.
I assume there is an extremely easy fix for this, but I have been searching for hours. Your help is very much appreciated.
[PHP]<?php
$sendTo = "me@gmail.com";
$subject = "Subject of the email";
$headers = "From: " . $_POST["contactVar"];
$headers .= "<" . $_POST["emailVar"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["emailVar"] . "\r\n";
$headers .= "Return-Path: " . $_POST["emailVar"];
$message = $_POST["emailVar"];
$message .= $_POST["agencyVar"];
$message .= $_POST["address1Var"];
$message .= $_POST["address2Var"];
$message .= $_POST["cityVar"];
$message .= $_POST["stateVar"];
$message .= $_POST["zipcodeVar"];
$message .= $_POST["phoneVar"];
$message .= $_POST["faxVar"];
$message .= $_POST["websiteVar"];
$message .= $_POST["commentsVar"];
mail($sendTo, $subject, $message, $headers);
?>[/PHP]