note 39581 added to ref.mail
| From: | the_little_hand at hotmail dot com | Date: | Tue, 03 Feb 2004 02:50:26 +0000 |
| Subject: | note 39581 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64580@lists.php.net to get a copy of this message | ||
I just write a php script on sending the form data to multiple recipents (the sender and the
administrator) successfully. However, both of them would recieve the email with the same content. I
really want to send TWO DIFFERENT emails to each of them. what should I do?
here is my script:
<?php
$type = $_REQUEST['type'] ;
$name = $_REQUEST['name'] ;
$join = $_REQUEST['join'] ;
$tel = $_REQUEST['tel'] ;
$email = $_REQUEST['email'] ;
$address = $_REQUEST['address'] ;
$any = $_REQUEST['any'] ;
$more = $_REQUEST['more'] ;
$other = $_REQUEST['other'] ;
mail( "postmaster@domain.com ; $email", "feedback form
data","$name,hi!\nthank you for your participation\n\nplease check the data\ntype
$type\nname$name \njoin$join\ntel$tel\nemail$email\naddress$address\nbirthday$any
$more\nother$other", "From: $name<$email>");
echo ("<p>$name,thank youI</p>");
?>
please help me!
----
Manual Page -- http://www.php.net/manual/en/ref.mail.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39581
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39581&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39581&report=yes
Search -- http://master.php.net/manage/user-notes.php