Multiple body lines ... pear (php) mail
<p>I'm using pear mail, its sending okay but I'm not getting all the $bodycopy lines even if the if statement variable are empty I should still see the top and bottom dashes in which I'm not. Is my format/coding for multiple body content off?</p>

<p>// SETUP EMAIL</p>

<pre><code>    $Bodycopy = "This information was submitted via the solocup.com website and sent to you because of the location 
identified by the user. If this has reached you in error, please forward this email to ----";
    $Bodycopy. "&lt;br&gt;----------------------------------------------------------------------------------------------&lt;br&gt;&lt;br&gt;";

if ($uxRequestType != "")      $Bodycopy. "What kind of information do you need? : " .$uxRequestType. "&lt;br&gt;";   
    if ($uxConsumerBusiness != "") $Bodycopy. "What type of customer or vendor are you? : " .$uxConsumerBusiness. "&lt;br&gt;";
    if ($uxGlobalLocation != "")   $Bodycopy. "Global Location : " .$uxGlobalLocation. "&lt;br&gt;";
    if ($uxCompany != "")          $Bodycopy. "Company : " .$uxCompany. "&lt;br&gt;";
    if ($uxFirstName != "")        $Bodycopy. "First Name : " .$uxFirstName. "&lt;br&gt;";
    if ($uxLastName != "")         $Bodycopy. "Last Name : " .$uxLastName. "&lt;br&gt;";
    if ($uxTitle != "")            $Bodycopy. "Title : " .$uxTitle. "&lt;br&gt;";
    if ($uxEmail != "")            $Bodycopy. "Email : " .$uxEmail. "&lt;br&gt;";
    if ($uxAddress != "")          $Bodycopy. "Address : " .$uxAddress. "&lt;br&gt;";
    if ($uxCity != "")             $Bodycopy. "City : " .$uxCity. "&lt;br&gt;";   
    if ($uxState != "")            $Bodycopy. "State : " .$uxState. "&lt;br&gt;";
    if ($uxZip != "")              $Bodycopy. "Zip/Postal Code : " .$uxZip. "&lt;br&gt;";
    if ($uxPhone != "")            $Bodycopy. "Phone : " .$uxPhone. "&lt;br&gt;";
    if ($uxFax != "")              $Bodycopy. "Fax : " .$uxFax. "&lt;br&gt;";
    if ($uxProductDesc != "")      $Bodycopy. "UPC or product description : " .$uxProductDesc. "&lt;br&gt;";

    $Bodycopy. "&lt;br&gt;----------------------------------------------------------------------------------------------&lt;br&gt;&lt;br&gt;";

    if ($uxComment != "")          $Bodycopy. "Comments : &lt;br&gt;" .$uxComment. "&lt;br&gt;";

$Bodycopy. "&lt;br&gt;&lt;br&gt;";
</code></pre>

<p>// PROCESS EMAIL</p>

<p>// mail server info...</p>

<pre><code>    $from = $SendTo;
    $to = "Do Not Reply &lt;----@----&gt;";
    $bcc = "--@---";
    //$to = "Do Not Reply &lt;---@--&gt;";
    $subject = "--- Contact : " . $uxGlobalLocation;
    $body = $Bodycopy;
    $host = "-----";
    $port = "25";
    $username = "donotreply@---";
    $password = "----";

    $headers = array ('From' =&gt; $from,
    'To' =&gt; $to,
    'Bcc' =&gt; $bcc,
    'Subject' =&gt; $subject);
    $smtp = Mail::factory('smtp',
    array ('host' =&gt; $host,
     'auth' =&gt; true,
     'port' =&gt; $port,
     'username' =&gt; $username,
     'password' =&gt; $password));

    $mail = $smtp-&gt;send($to, $headers, $body);

    if (PEAR::isError($mail)) {
    echo("&lt;p&gt;" . $mail-&gt;getMessage() . "&lt;/p&gt;");
    } else {
    header ('Location: /index.php?option');
    exit();
    //echo("&lt;p&gt;Message successfully sent!&lt;/p&gt;");
    }
</code></pre>
