Report How To Send Form Data To Email With Php in PHP Posted September 17, 2013 Hi Sarah; I think something like this would work. // send email Notification $to = "To: youremailaddress@your.domain"; $subject = "text written here appears in the subject head of the email"; $body = "Dear Sarah;\n Below are items we need, yada yada. Text written here will appear in the body of the email. Sincerely, -Us the salt mine workers\n\n ---Details about what your form captured can go here like this--- CUSTOMERS NAME: $name CUSTOMERS EMAIL: $email ---ABOUT YOUR ORDER--- QUANTITY: $quantity ITEM: $item"; $headers = "From: $email"; mail($to, $subject, $body, $headers);
How To Send Form Data To Email With Php
in PHP
Posted
Hi Sarah;
I think something like this would work.
// send email Notification
$to = "To: youremailaddress@your.domain";
$subject = "text written here appears in the subject head of the email";
$body = "Dear Sarah;\n
Below are items we need, yada yada. Text written here will appear in the body of the email.
Sincerely,
-Us the salt mine workers\n\n
---Details about what your form captured can go here like this---
CUSTOMERS NAME: $name
CUSTOMERS EMAIL: $email
---ABOUT YOUR ORDER---
QUANTITY: $quantity
ITEM: $item";
$headers = "From: $email";
mail($to, $subject, $body, $headers);