"; $header = "From:$from\n"; $header .= "Reply-To:$from\n"; $body = "The following quote request was submitted by: \n"; $body .= "$name on $date\n\n"; $body .= "---------------------------------------------------------------\n\n"; $body .= "$comments\n\n"; $body .= "---------------------------------------------------------------\n\n"; $body .= " $REMOTE_HOST\n"; $body .= " $REMOTE_ADDR\n"; $body .= " $HTTP_USER_AGENT\n"; $header=trim($header); mail($to, $subject, $body, $header) or die("error=failed to send the email"); echo "&error=sent the email successfully"; ?>