This question already has an answer here:
marked as duplicate by Funk Forty Niner -> this is not correct what he wrote - it is still not answered .... so now ..... My problem is that I want to send an mail with content.
foreach($articles as $article){
$art = $article['Name'];
$anz = $article['Anzahl'];
$mod = $article['Model'];
$price = $article['Price'];
$tax = "19";
$final = $anz * $price;
$deinMailtext .= $mod.'\r\n';
//$deinMailtext.=$mod."\r\n";
if ($anz > 0){
$sqlop = "INSERT INTO orders_products (orders_id, products_id, products_model, products_name, products_price, final_price, products_tax, products_quantity) values ('$orders_id', '$art','$mod','$mod', $price, '$final','$tax','$anz')";
$mysqli->query($sqlop);
}
}
$empfaenger = "test@web.de";
$betreff = "Die Mail-Funktion";
$from = "From: Vorname Nachname <test@web.de>";
$text = "Hier kommt der Text".$deinMailtext;
mail($empfaenger, $betreff, $text , $from);
but if I test it I get the result in an line side by side - but I want to have it one below the other.