Passerose
nOObee
Joined: 07 Jul 2005
Posts: 1
0 Cash
|
 formatting email from php
Hello phpers,
I'm sending vars from flash to php to process and send a mail. Everything works fine but I want to format the vars in the body of the message so they are on seperate lines. Everything I try is useless so if someone can tell me how to place a carraige return instead of a space between I'd be grateful
code -
<?php
$sendTo = $_POST["agent"];
$subject = "Quote";
$headers = "From: " . $_POST["name"] . "<" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$message = "Please Quote me for : ". $_POST["name"] ." ". $_POST["email"] ." Phone : ". $_POST["phone"] ." My chosen Agent : ". $_POST["agent"] ." Additional Comments : ". $_POST["comment"] ." Quantity ". $_POST["quantity"] ." ". $_POST["format "] ." ". $_POST["packaging"] ." Specific Packaging : ". $_POST["specify"] ." ". $_POST["booklet"] ." ". $_POST["artwork"];
mail($sendTo, $subject, $message, $headers);
?>
|