|
-
What do i need to add?
i have got this php code but i dont know what to add so that i can send other vars to the body of the email not just "address".
<?php
$sendTo = "[email protected]";
$subject = "Info request";
$headers = "From: " . $_POST["name"] ." ". $_POST["company"] . "<" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$message = $_POST["address"];
mail($sendTo, $subject, $message, $headers);
?>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|