
09.06.2011, 03:32
|
|
Регистрация: May 2008
Сообщений: 33
|
помощь для отправки сообщения с сайта xml-flash
прошу помощь для реализации отправки сообщений через форму расположенную на сайте и прикрученную к mail.php
что нужно поменять чтобы она отправляла сообщения с сайта beklarov .ком на почту mail@ beklarov.com?
для бывалых задача очень простая.
сам код ниже
<?php
$your_name = $_REQUEST['nametxt'];
$email = $_REQUEST['emailtxt'];
$message = $_REQUEST['messagetxt'];
$recipient_email = "mail@beklarov.com";
$donotreply_email = "don'treply@beklarov.com";
$me = "beklarov.com";
$me = "beklarov.com";
$subject = "beklarov.com message from " . $email;
//$headers = "From: " . $your_name . " <" . $email . ">\n";
//$headers .= 'Content-type: text/html; charset=iso-8859-1';
$content = "<html><head><title>Contact letter</title></head><body><br>";
$content .= "Name: <b>" . $your_name . "</b><br>";
$content .= "Email: <b>" . $email . "</b><br><hr><br>";
$content .= "Message: <b>" . $message . "</b><br>";
$content .= "<br></body></html>";
$forwardingthemessage = "$me
Has received the below message:
--------------------------------------------------
Name: $your_name
Email: $email
.........Message.........
$message
--------------------------------------------------
end of message";
$replymessage = "Hello $your_name
Thanks for mailing.
I will get back to you soon.
Don't reply to this mail.
Here is the message:
--------------------------------------------------
Name: $your_name
Email: $email
$message
--------------------------------------------------
All the best
beklarov.com";
mail("$recipient_email",
"$subject",
"$forwardingthemessage",
"From: $email\nReply-To: $email");
mail("$email",
"Receipt from $me",
"$replymessage",
"From: $donotreply_email\nReply-To: $donotreply_email");
?>
<html>
<body bgcolor="#000000">
<div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">
Your message has been sent. Thanks.
<BR><BR><BR>
<a href="javascript:history.back()"> <font color="FFFFFF"><---- Go Back</font> </a>
</div>
</body>
</html>
|