Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
11-26-2010, 01:34 PM #1
- Join Date
- Nov 2010
- Thanked 0 Times in 0 Posts
Send HTML content via PHP to email account
I found a code that is exactly what I need for a POS system based on web language that I am developing.
What it does is send as soon as a pop-up window is activated, the information that appears (shopping items, quantities, etc.) to an email address.
The problem is that despite receiving an email that has no content.
Does anyone know what might be the problem?
Thanks a lot
$to = "EMAIL HERE";
$subject = "HTML Data";
$message = $_POST["data"];
$headers = "From: The Server <firstname.lastname@example.org>" . "\r\n" .
"Content-type: text/html" . "\r\n";
mail($to, $subject, $message, $headers);