I have this code that write inside the variable $products
a string of products name:
$products = '';
foreach($order->pad_products as $product) $products .= " $product->title";
When I print $products
inside a HTML email body and send the email with PHP, in this case, I sand $msg
, I see the name of the products all in one line.
$msg = "
<html>
<head>
<style type='text/css'></style>
</head>
<body>
<h1>Sent!</h1>
<p>$name thank you</p>
$products
</body>
</html>";
How can I make a list of these products? and, can I delete one of these?
` or create a `
` for example.
– u_mulder Sep 05 '18 at 08:38