$mail->Body = "";
when I find that I want to send a letter, I will write a whole html + css phrase, and then add a php phrase
like:
$mail->Body = "
<html>
<head>
".$phpmailerCssStyle."
</head>
<body>
<div class="edm-layout">
<img src="".$host_url."images/logo.png">
<div class="line"></div>
</div>
<div class="edm-content">
<div class="edm-hithere">
".$getUser["name"]." <br> ".$prodTotal." <br>".formatProductPrice($thisTotal)."
</div>";
$row_distinct = mysqli_fetch_array($cako_id_distinct);
$cako_data = $pdo->query(
"SELECT "
);
$mail->Body .= "
<div class="edm-products">
".$row_distinct[""];
//.......
</body>
</html>
The type is like the long code
can I import it into a file as long as the list is introduced?
$mail->Body = "xxx.php"; or require_once...
is there any legal truth?
or some other way?
at least my code on this page will not see this long string of codes.