Contact ( Template XMl )
king of real
Messages postés
91
Date d'inscription
Statut
Membre
Dernière intervention
-
kombi -
kombi -
Bonjour,
j'ai télécharger un Template XML
tous marche très bien
mais le seul problème c'est que je reçoi pas les donné du formulaire du contact a mon e-mail
voila le code de fichier mail.php
j'ai changer $recipient_email
mais le même problème
<?php
$your_name = $_REQUEST['nametxt'];
$email = $_REQUEST['emailtxt'];
$message = $_REQUEST['messagetxt'];
$recipient_email = "YOUR EMAIL HERE";
$donotreply_email = "DoNotReply@YOURWEBSITE.com";
$me = "YOURWEBSITE.com";
$me = "YOURWEBSITE.com";
$subject = "YOURWEBSITE.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 = "Hi $your_name
Thank you for your email.
We will follow up shortly.
Please DO NOT reply to this email.
Below is a copy of the message you submitted:
--------------------------------------------------
Name: $your_name
Email: $email
$message
--------------------------------------------------
Best regards
YOURWEBSITE.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 was sent. Thank you.
<BR><BR><BR>
<a href="javascript:history.back()"> <font color="FFFFFF"><---- Go Back</font> </a>
</div>
</body>
</html>
<!-- uncomment to resize the page -->
<!-- <script>resizeTo(500, 500)</script> -->
j'ai télécharger un Template XML
tous marche très bien
mais le seul problème c'est que je reçoi pas les donné du formulaire du contact a mon e-mail
voila le code de fichier mail.php
j'ai changer $recipient_email
mais le même problème
<?php
$your_name = $_REQUEST['nametxt'];
$email = $_REQUEST['emailtxt'];
$message = $_REQUEST['messagetxt'];
$recipient_email = "YOUR EMAIL HERE";
$donotreply_email = "DoNotReply@YOURWEBSITE.com";
$me = "YOURWEBSITE.com";
$me = "YOURWEBSITE.com";
$subject = "YOURWEBSITE.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 = "Hi $your_name
Thank you for your email.
We will follow up shortly.
Please DO NOT reply to this email.
Below is a copy of the message you submitted:
--------------------------------------------------
Name: $your_name
Email: $email
$message
--------------------------------------------------
Best regards
YOURWEBSITE.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 was sent. Thank you.
<BR><BR><BR>
<a href="javascript:history.back()"> <font color="FFFFFF"><---- Go Back</font> </a>
</div>
</body>
</html>
<!-- uncomment to resize the page -->
<!-- <script>resizeTo(500, 500)</script> -->
A voir également:
- Contact ( Template XMl )
- Xml download - Télécharger - Édition & Programmation
- Office xml handler - Télécharger - Traitement de texte
- Recuperer contact carte sim - Guide
- Retrouver contact supprimé - Accueil - Android
- Localiser un contact - Guide
2 réponses
Bonjour,
Montrez nous le formulaire, ce sera plus simple.
Les champs de ce formulaire ne doivent pas porter les bon name.
Cordialement
Montrez nous le formulaire, ce sera plus simple.
Les champs de ce formulaire ne doivent pas porter les bon name.
Cordialement
kombi
http://kombi.servisin.org bize ula??n
je sais pas ou il ce trouve :(
j'ai un fichier contact.xml et mail.php
et voila ce que je trouve sur ce contact.xml
<?xml version='1.0' encoding='utf-8'?>
<contactform
formwidth="780"
formheight="485"
mailphpurl="mail.php"
imageurl="images/contact.jpg"
imagelink="http://www.kickassgfx.net/"
imagetarget="_blank"
imagewidth="320"
imageheight="475"
imagepadding="5"
imagesolidbackgroundcolor="0x1e1a17"
imagesolidbackgroundopacity="0.95"
imagesolidbackgroundrounded="0"
imageshadowopacity="0.3"
imageshadowblur="7"
imageshadowcolor="0x000000"
imageshadowdistance="2"
imageshadowangle="90"
mailphplink="mail.php"
fieldbgcolor="0x1e1a17"
fieldbgopacity="0.8"
fieldbgrounded="0"
fieldfontcolor="0xcccccc"
fieldfontsize="12"
errorbgcolor="0xffffff"
errorbgopacity="0.95"
errorfontcolor="0x333333"
errorfontsize="12"
infobgcolor="0x1e1a17"
infobgopacity="0.95"
btnbgcolor="0x111111"
btnfontcolor="0xaaaaaa"
btnfontsize="12"
fonttype="Arial"
>
<infotext>
<![CDATA[<scripttext2>We are interested in your Feedback!</scripttext2><content><br/>
Address: 1st Street, New York, USA<br/>
Phone: 1 (800) 123-4567-1<br/>
Fax: 1 (800) 123-4567-2<br/><br/>
Email: <a href="mailto:info@yourcompany.com"> info@yourcompany.com</a><br/>
Website: <a href="http://www.kickassgfx.net/"> www.yourcompany.com</a></content>]]>
</infotext>
<name>
Please enter your name here
</name>
<email>
Please enter your email address here
</email>
<message>
Your message to us
</message>
<sendmail>
Send Request
</sendmail>
<errorname>
Please enter your name!
</errorname>
<erroremail>
Please enter a valid email address!
</erroremail>
<errorfield>
Please enter a message!
</errorfield>
<finished>
Thank you the Email has been send!
</finished>
<notfinished>
Error sending the Email!
</notfinished>
</contactform>
j'ai un fichier contact.xml et mail.php
et voila ce que je trouve sur ce contact.xml
<?xml version='1.0' encoding='utf-8'?>
<contactform
formwidth="780"
formheight="485"
mailphpurl="mail.php"
imageurl="images/contact.jpg"
imagelink="http://www.kickassgfx.net/"
imagetarget="_blank"
imagewidth="320"
imageheight="475"
imagepadding="5"
imagesolidbackgroundcolor="0x1e1a17"
imagesolidbackgroundopacity="0.95"
imagesolidbackgroundrounded="0"
imageshadowopacity="0.3"
imageshadowblur="7"
imageshadowcolor="0x000000"
imageshadowdistance="2"
imageshadowangle="90"
mailphplink="mail.php"
fieldbgcolor="0x1e1a17"
fieldbgopacity="0.8"
fieldbgrounded="0"
fieldfontcolor="0xcccccc"
fieldfontsize="12"
errorbgcolor="0xffffff"
errorbgopacity="0.95"
errorfontcolor="0x333333"
errorfontsize="12"
infobgcolor="0x1e1a17"
infobgopacity="0.95"
btnbgcolor="0x111111"
btnfontcolor="0xaaaaaa"
btnfontsize="12"
fonttype="Arial"
>
<infotext>
<![CDATA[<scripttext2>We are interested in your Feedback!</scripttext2><content><br/>
Address: 1st Street, New York, USA<br/>
Phone: 1 (800) 123-4567-1<br/>
Fax: 1 (800) 123-4567-2<br/><br/>
Email: <a href="mailto:info@yourcompany.com"> info@yourcompany.com</a><br/>
Website: <a href="http://www.kickassgfx.net/"> www.yourcompany.com</a></content>]]>
</infotext>
<name>
Please enter your name here
</name>
<email>
Please enter your email address here
</email>
<message>
Your message to us
</message>
<sendmail>
Send Request
</sendmail>
<errorname>
Please enter your name!
</errorname>
<erroremail>
Please enter a valid email address!
</erroremail>
<errorfield>
Please enter a message!
</errorfield>
<finished>
Thank you the Email has been send!
</finished>
<notfinished>
Error sending the Email!
</notfinished>
</contactform>
Je n'ai jamais travaillé avec ce genre de système, à savoir un template XML, ceci dit les champs XML sont name, email et message donc vous pourriez modifier le code PHP en conséquence
$your_name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
et regarder si ça fonctionne
$your_name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
et regarder si ça fonctionne