PHP - Ayuda para configurar y activar el correo en mi web

 
Vista:

Ayuda para configurar y activar el correo en mi web

Publicado por Antonio (1 intervención) el 21/08/2012 16:09:15
a pues eso necesito ayuda de expertos en mi web no viene configurado ni activado el envio de los emails
y sinceramento estoy a 0 de html muchas gracias

[url]www.posicionamientogoogleseo.es[/url]

el codigo lo tengo asi

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<form id="contact-form" method="post" enctype="multipart/form-data">
<fieldset>
<div class="wrapper">
<label><span class="text-form">Your Name:</span><input name="p1" type="text" /></label>
<label><span class="text-form">Your E-mail:</span><input name="p2" type="text" /></label>
<div class="wrapper"><div class="text-form">Your Message:</div><textarea></textarea></div>
<div class="buttons">
<a class="button" href="#" onClick="document.getElementById('contact-form').reset()">Clear</a>
<a class="button" href="#" onClick="document.getElementById('contact-form').submit()">Send</a>
 
 
<?php
 
$your_name = $_GET['your_name'];
$your_phone = $_GET['your_phone'];
$your_email = $_GET['your_email'];
$your_message = $_GET['message'];
$subject="From ".$_GET['your_name'];
$headers= "From: ".$_GET['your_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 .= "Phone: <b>" . $your_phone . "</b><br>";
$content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>";
$content .= $your_message;
$content .= "<br></body></html>";
 
mail("alex@template-help.com",$subject,$content,$headers);
echo ("Your message was successfully sent!");
?>
<script>
resizeTo(300, 300)
//window.close()
</script>


gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder