/ Published in: PHP

Take the contens from a table in MySQL and display it in an email
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function message() { $m2 = ''; { $m2 .= $row['item']. ": " .$row['count'] . "<br>"; } return $m2; } $subject = "My subject"; $headers = "MIME-Version: 1.0" . " "; $headers .= "Content-type:text/html;charset=iso-8859-1" . " "; $headers .= "From: $from"; $message = message(); echo "Mail Sent.";
Comments
