Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29905

Problems with email with data coming fram an statement [duplicate]

$
0
0

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.


Viewing all articles
Browse latest Browse all 29905

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>