Jump to content

[SOLVED] how can make this code work. send email into person


gudfry

Recommended Posts

hi all;

 

      i have a code that would  send in two person, after submmited the form, only one person recieve the email

 

        here is my code;

 

        <?php

$name    = $_POST['name'];

$sender  = $_POST['e-mail'];

$phone  = $_POST['phone'];

$subject = $_POST['subject'];

$message = $_POST['message'];

$email = $_POST['email'];

 

$sendTo = $email;

$return_to ="[email protected]";

$subject = '$subject';

$headers = "From: ".$_POST['name']." ".$_POST['phone']. "<" . $_POST["email"] .">\r\n";

$headers .= "Reply-To: " . $_POST["email"] . "\r\n";

$headers .= "Return-path: " .$return_to;

$message = $_POST["message"];

mail($sendTo, $subject, $message, $headers);

 

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.