Foros del Web » Programando para Internet » PHP »

Recibe Un Formularioweb En Tu Email Con Php

Estas en el tema de Recibe Un Formularioweb En Tu Email Con Php en el foro de PHP en Foros del Web. HOLA QUE TAL COMPAÑEROS.... ESTE ES UNO DE LOS PRINCIPALES DOLORES DE CABEZA QUE ALGUNO DE NOSOTROS TENEMOS EN NUESTRO NUEVO MUNDO DEL DISEÑO Y ...
  #1 (permalink)  
Antiguo 03/03/2005, 14:22
Avatar de Elvenezolano19  
Fecha de Ingreso: agosto-2004
Ubicación: Petare, Caracas - Venezuela
Mensajes: 81
Antigüedad: 19 años, 7 meses
Puntos: 0
Recibe Un Formularioweb En Tu Email Con Php

HOLA QUE TAL COMPAÑEROS.... ESTE ES UNO DE LOS PRINCIPALES DOLORES DE CABEZA QUE ALGUNO DE NOSOTROS TENEMOS EN NUESTRO NUEVO MUNDO DEL DISEÑO Y PROGRAMACION WEB-

AQUI LE TENGO LOS PASOS PARA CUALQUIER USUARIO DESDE INTERNET REYENE TU FORMULARIO Y ESOS DATOS LLEGUEN A TU EMAIL.

LO PRIMERO QUE HARÁS ES DESCARGAR EL FICHERO CON EXTENCION .RAR --www.mcab81.info/contactar.rar (sino lo tienes descarga WinRar para poder descomprimir)

OJO...abre el archivo .PHP con blok de nota y modifica el correo (tienes que poner el email tuyo)

2) Hubicate cualquier servidor gratuito que soporte PHP Y COPIA ambos archivos en la carpeta raiz de tu host... y despues, llamas la pagina form2mail.htm ,,segun el ejemplo abajo descrito

NOTA:yo utilizé tripod.es y me sirvió AL MENOS DE PRUEBA, lo malo es que saca demaciada publicidad.

en caso de que eligas a TRIPOD..estos son los pasos-

2.1)ftp.usuarios.lycos.es , para que le entres por el ftp y subas los archivos que recien acabas de descargar. ambos archivos los puedes probar en la carpeta raiz

2.2)Vete al explorador y prueba con la siguiente sintaxis:

http://usuarios.lycos.es/tusitio*/form2mail.htm

donde "TUSITIO" es el nombre que elejiste en tu regristro


3) EL RESULTADO, SERA ALGO IGUAL A ESTO
http://usuarios.lycos.es/elsentence/form2mail.htm

Y--- YA PUEDES INICIARTE EN EL MUNDO DEL PHP....

AUNQUE NO SÉ SI ESTOI EN ESE MUNDO.. DESPUÉS QUE HICE ESTO QUE ESTOI EXPLICANDO..(LO ISE HACE 20 MIN), ME SIENTO EL ""SUPER PROGRAMADOR DE PHP"" JEJEJEJE..

ESPERO LES SIRVA... DUDAS, PREGUNTAS??...N DUDEN EN FORMULARLAS
__________________
__________________________________________________ ______
“Un ser sin estudio es un ser incompleto”.

...Simón Bolívar


¡¡ Viva Venezuela... Mi Patria querida
y quien la libertó mi hermano fue SIMON BOLIVAR...¡¡¡ :-D
  #2 (permalink)  
Antiguo 03/03/2005, 14:35
O_O
 
Fecha de Ingreso: enero-2002
Ubicación: Santiago - Chile
Mensajes: 34.417
Antigüedad: 22 años, 2 meses
Puntos: 129
mm .. este... ¿donde está el código de form2mail.php? ... Te faltó eso .. que es lo más importante.

Un saludo,
  #3 (permalink)  
Antiguo 03/03/2005, 16:49
Avatar de Elvenezolano19  
Fecha de Ingreso: agosto-2004
Ubicación: Petare, Caracas - Venezuela
Mensajes: 81
Antigüedad: 19 años, 7 meses
Puntos: 0
<?php

$MailToAddress = "[email protected]"; // your email address
$redirectURL = "http://www.allmusic.ve.tc"; // the URL of the thank you page.

# optional settings
$MailSubject = "[Message from the contact form]"; // the subject of the message you will receive
$MailToCC = ""; // CC (carbon copy) also send the email to this address (leave empty if you don't use it)
# in the $MailToCC field you can have more then one e-mail address like "[email protected], [email protected], [email protected]"

# If you are asking for an email address in your form, you can name that input field "email".
# If you do this, the message will apear to come from that email address and you can simply click the reply button to answer it.
# You can use this scirpt to submit your forms or to receive orders by email.
# You need to send the form as POST!

# If you have a multiple selection box or multiple checkboxes, you MUST name the multiple list box or checkbox as "name[]" instead of just "name"
# you must also add "multiple" at the end of the tag like this: <select name="myselect[]" multiple>
# and the same way with checkboxes

# This script was made by George A. & Calin S. from Web4Future.com
# There are no copyrights in the e-mails sent and we do not ask for anything in return.

# DO NOT EDIT BELOW THIS LINE ================================================== ==========
# ver. 1.2
$Message = "";
if (!is_array($HTTP_POST_VARS))
return;
reset($HTTP_POST_VARS);
while(list($key, $val) = each($HTTP_POST_VARS)) {
$GLOBALS[$key] = $val;
if (is_array($val)) {
$Message .= "<b>$key:</b> ";
foreach ($val as $vala) {
$vala =stripslashes($vala);
$Message .= "$vala, ";
}
$Message .= "<br>";
}
else {
$val = stripslashes($val);
if (($key == "Submit") || ($key == "submit")) { }
else { if ($val == "") { $Message .= "$key: - <br>"; }
else { $Message .= "<b>$key:</b> $val<br>"; }
}
}
} // end while
$Message = "<font face=verdana size=2>".$Message;
mail( $MailToAddress, $MailSubject, $Message, "Content-Type: text/html; charset=ISO-8859-1\r\nFrom: ".$email."\r\nBCc: ".$MailToCC);
header("Location: ".$redirectURL);
?>


De todas formas... como indiqué DESDE EL PRINCIPIO. ahy un archivo .rar que tiene tanto el html como el php
__________________
__________________________________________________ ______
“Un ser sin estudio es un ser incompleto”.

...Simón Bolívar


¡¡ Viva Venezuela... Mi Patria querida
y quien la libertó mi hermano fue SIMON BOLIVAR...¡¡¡ :-D
  #4 (permalink)  
Antiguo 03/03/2005, 16:50
Avatar de Elvenezolano19  
Fecha de Ingreso: agosto-2004
Ubicación: Petare, Caracas - Venezuela
Mensajes: 81
Antigüedad: 19 años, 7 meses
Puntos: 0
www.mcab81.info/contactar.rar...y esta es la direccion
__________________
__________________________________________________ ______
“Un ser sin estudio es un ser incompleto”.

...Simón Bolívar


¡¡ Viva Venezuela... Mi Patria querida
y quien la libertó mi hermano fue SIMON BOLIVAR...¡¡¡ :-D
  #5 (permalink)  
Antiguo 04/03/2005, 01:24
 
Fecha de Ingreso: mayo-2004
Mensajes: 393
Antigüedad: 19 años, 10 meses
Puntos: 0
Hola:

Yo, humildemente, no veo problemas para constrir lo que quieres.
Creo que puede hacerse perfectamente con un simple e-mail por función (mail) con formato HTML. Envías las variables que luego has de recoger y las tratas en tu página PHP de resultados.

Saludos.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 03:24.