this is what ive done:
[PHP[
<?
// Recieving and Creating Variables…
$Name = $_POST[‘name’];
$Email= $_POST[‘email’];
$Email = "spillargroove@hotmail.com ";
$Message = $_POST[‘message’];
$Subject = “Contact”;
$Header = “From: $Name <$Email>”;
//Performing Mail script…
mail($Email, $Subject, $Message, $Header);
?>
now everything working with the fla file and a msg sends to my inbox but when some user types his name, email, and message, willl it display his/her email address when i recieve the msg in my inbox?
system
December 17, 2003, 3:49am
2
Yea it should. BTW, y’d u delete the previous post?
system
December 17, 2003, 3:52am
3
Oh! i’m really sorry about this. No it won’t show. Use a separate variable for your email address.
Yu could replace
$Email = "spillargroove@hotmail.com ";
with
$toEmail = "spillargroove@hotmail.com ";
and then after $Header, use
$Message = $Email + "
" + $Message
I truly apologize for not going through it properly.
system
December 17, 2003, 3:55am
4
so like this?
<?
// Recieving and Creating Variables…
$Name = $_POST[‘name’];
$Email= $_POST[‘email’];
$toEmail = "spillargroove@hotmail.com ";
$Message = $_POST[‘message’];
$Subject = “Contact”;
$Header = “From: $Name <$Email>”;
//Performing Mail script…
mail($Email, $Subject, $Message, $Header);
?>
system
December 17, 2003, 3:57am
5
Like this:
<?
// Recieving and Creating Variables...
$Name = $_POST['name'];
$Email= $_POST['email'];
$Message = $_POST['message'];
$toEmail = "spillargroove@hotmail.com";
$Subject = "Contact";
$Header = "From: $Name <$Email>";
$Message = $Email + "
" + $Message;
//Performing Mail script...
mail($toEmail, $Subject, $Message, $Header);
?>
The email of the sender will show at the top of the message
system
December 17, 2003, 4:05am
6
somehow not working
hamza, could you take a look at my fla/php?
here they are:
system
December 17, 2003, 4:07am
7
this is the php script
(note: the script is in .txt because uploading .php is not possible)
system
December 17, 2003, 4:10am
8
this is what it says in my msn:
From : dhd <spillarg@lycos.co.uk >
Sent : Wednesday, 17 December 2003 3:01:02 PM
To : spillargroove@hotmail.com
Subject : Contact
0 (this is the text msg area)
the "spillarg@lycos.co.uk " should be the sender’s email address
and ive tested it with one of my friends and it doesnt show his address.