Dear friends,
I have a form which data I mail them with php.
The form has 2 parts, customers data and shipping address.
When I receive the mail from my site
the output is
name surname address
what I want to do is
name
surname
address
the code I use is
$order = (ob_get_contents());
$to = "sales@mgiurdas.gr";
$subject = "??????????";
$data1 = "$name\r\n $surname\r\n
$address\r\n $tk\r\n $city\r\n
$tel\r\n $email\r\n
$profession\r\n";
$data2 = "$ship_name\r\n $ship_surname\r\n
$ship_address\r\n $ship_tk\r\n
$ship_city";
$body = $order.$data1.$data2;
$header = "Content-Type: text/html;
charset=windows-1253\n";
mail($to, $subject, $body, $header);
why don't I get a line break after each variable?
thanks for the help