Ver Mensaje Individual
  #7 (permalink)  
Antiguo 07/02/2011, 10:29
gler
 
Fecha de Ingreso: febrero-2011
Mensajes: 1
Antigüedad: 13 años, 3 meses
Puntos: 0
no funciona mi formulario--EN LA MISMA SITUACION

tengo un formulario en php que necesito enviar a un buzon de correo he probado con varios codigos y aun no logro que lleguen los correos al destino.active la funcion en el servidor para que dicho proceso se realice pero aun nada podrian ayudarme?aqui esta el codigo:

<?php

session_start();

include('config.php');

include('aplicaciones.php');

include('contador.php');

// var_dump($_POST);

//

// var_dump("el enviar es:".$Enviar);







/*if (isset($Enviar)) {

$remail="[email protected]";

//$remail="[email protected]";

$subjet="ATENCI&Oacute;N AL CIUDADANO";

$fecha = time() ;

$tiempo = date("d.m.Y h:i:a",$fecha);

$email_body ="<h3>Atenci&oacute;n al Ciudadano</h3>";

$email_body .="<strong>Nombre completo:</strong>".$_POST[Nombre]."<br />";

$email_body .="<strong>Correo:</strong>".$_POST[Correo]."<br />";

$email_body .="<strong>Tel&eacute;fonos:</strong>".$_POST[Telefonos]."<br />";

$email_body .="<strong>Ciudad y estado:</strong>".$_POST[CiudadyEstado]." <br/>";

$email_body .="<strong>Mensaje:</strong>".nl2br($_POST[Mensaje])."<br /><br />";

$email_body .="<strong>Enviado el:</strong>".$tiempo."<br />";

$headers = "MIME-Version: 1.0\r\n";

$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

$headers .= "From: Inapymi - Atenci&oacute;n al ciudadano\r\n";

$headers .= "Reply-To:".$_POST[Correo]." \r\n";

$headers .= "X-Mailer: Microsoft Outlook Express 6.00.2600.0000";

mail($remail, $subjet, $email_body, $headers);

$positivo=true;



}*/

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es-es" lang="es-es">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="keywords"

content="INAPYMI, Desarrollo de la

Peque&Ntilde;a y Mediana Industria" />

<meta name="description" positivo=true;

content="Instituto Nacional de Desarrollo de

la Peque&Ntilde;a y Mediana Industria

" />

<title><?php echo $titulo?></title>

<script src="js/run2.js" type="text/javascript"></script>

<script src="js/validaciones.js" type="text/javascript"></script>



<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>

<link href="css/general.css" rel="stylesheet" type="text/css" />

<style type="text/css">

<!--

#titulo_enlace {

color: #CC0000;

}

.style1 {font-weight: bold}

-->

</style>



<script language="javascript" type="text/javascript">

function vacio(q) {

for ( i = 0; i < q.length; i++ ) {

if ( q.charAt(i) != " " ) {

return true

}

}

return false

}



function valida(F) {



if( vacio(F.Nombre.value) == false ) {

alert("Debe introducir su Nombre Completo.")

return false

} else {



if( vacio(F.Correo.value) == false ) {

alert("Debe introducir su Correo.")

return false

}else{





if( vacio(F.Telefonos.value) == false ) {

alert("Debe introducir su Telefono.")

return false

}else{



if( vacio(F.CiudadyEstado.value) == false ) {

alert("Debe introducir ciudad y estado.")

return false

}else{





if( vacio(F.Mensaje.value) == false ) {

alert("Debe introducir un mensaje.")

return false

}else{



return true



}



return true



}

return true



}



return true



}

}

return false

}









</script>



</head>



<body>

<center>

<div class="contenedor_general">

<?php

include('in_cabecero.php');





/*$url = $_SERVER["SERVER_NAME"].$_SERVER['REQUEST_URI'];

/*echo $_SERVER['REQUEST_URI']."<br>";

echo $_SERVER['SERVER_NAME']."<br>";









$x = parse_url($url);

//print_r($x);



$c = explode("/",$x['path']);



$conta = count($c)-1;





if(! empty($x['query'])){



$parametros = "?".$x['query'];



}

Cita:
Iniciado por Chininino Ver Mensaje
Hola chavos, tengo un problemilla y es que no me llega nada a mi correo de email, esta hecho en flash y php, alguien me podria ayudar.......





$nueva_ruta = "EN/".$c[$conta].$parametros;*/





?>

<div class="ruta">

<div class="ruta_izquierda">

<strong><a href="index.php">INICIO</a></strong> / <span id="menu">Atenci&oacute;n Al ciudadano </span> <span id="submenu"></span></div>

<div class="visitas">

&nbsp;&nbsp;<strong>Visitas:&nbsp;</strong><?php echo $leer;?>

</div>

</div>



<div class="desarrollo">



<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr valign="top">

<td align="left" class="enlace_sub_menu"><h1 id="titulo_enlace">ATENCI&Oacute;N AL CIUDADANO</h1>

<ul>

<li><a href="?escribenos">Escr&iacute;benos</a></li>

<li><a href="contactos.php">Contactos</a></li>

</ul></td>

<td style="padding-left:15px; padding-right:20px; padding-top:10px">

<?php

if (!isset($_POST['Correo'])) {

echo '

<form action="send.php" method="post" name="formulario" id="formulario" onSubmit="return valida(this);">

<table width="495" border="0" cellspacing="0" cellpadding="5">

<tr align="left" valign="top">

<td width="30%"><strong>Nombre completo<span class="antetitulo">*</span>:</strong></td>

<td width="70%">

<input name="Nombre" type="text" class="input_atencion" id="Nombre" /> </td>

</tr>

<tr align="left" valign="top">

<td><strong>Correo electr&oacute;nico<span class="antetitulo">*</span>: </strong></td>

<td><input name="Correo" type="text" class="input_atencion" id="Correo" /></td>

</tr>

<tr align="left" valign="top">

<td><strong>Tel&eacute;fonos<span class="antetitulo">*</span>:</strong></td>

<td><input name="Telefonos" type="text" class="input_atencion" id="Telefonos" /></td>

</tr>

<tr align="left" valign="top">

<td><strong>Ciudad y estado<span class="antetitulo">*</span>:</strong></td>

<td><input name="CiudadyEstado" type="text" class="input_atencion" id="CiudadyEstado" /></td>

</tr>

<tr align="left" valign="top">

<td><strong>Mensaje<span class="antetitulo">*</span>:</strong></td>

<td><textarea name="Mensaje" cols="45" rows="5" class="input_atencion" id="Mensaje"></textarea></td>

</tr>

<tr align="left" valign="top">

<td>&nbsp;</td>

<td><input type="submit" name="Enviar" id="Enviar" value="Enviar" /></td>

</tr>

<tr align="left" valign="top">

<td>&nbsp;</td>

<td><span class="antetitulo">* campos obligatorios</span></td>

</tr>

</table>

</form>'; }

?>

</td>

<td class="home_desarrollo_der">

<?php

include('in_derecha.php');

?>

</td>

</tr>

</table>

</div>

<?php include('in_pie.php');?>

</div>

</center>

</body>

</html>


----------------------------------------------------OTRO PHP APARTE-------------------------------------




<?php

session_start();

include('config.php');

include('aplicaciones.php');

include('contador.php');

?>
<?php
error_reporting(E_ALL);
$Nombre = $_POST['Nombre'];
$Correo_electronico= $_POST['Correo'];
$Telefonos = $_POST['Telefonos'];
$CiudadyEstado=$_POST['CiudadyEstado'];
$Mensaje=$_POST['Mensaje'];

$header = 'From: ' . $Correo . ", de la poblacion ".$CiudadyEstado."\r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";

$mensaje = "Este mensaje fue enviado por " . $Nombre . " \r\n";
$mensaje .= "Su e-mail es: " . $Correo . " \r\n";
$mensaje .= "Telefonos" . $_POST['Telefonos'] . " \r\n";
$mensaje .="Mensaje".$_POST['Mensaje'] . " \r\n";
$mensaje .= "Enviado el " . date('d/m/Y', time());

$para = '[email protected]';
$asunto = 'Importante';

mail('[email protected]','Pruebita' ,'Pruebita');

echo 'mensaje enviado correctamente';

?>