Foros del Web » Programación para mayores de 30 ;) » Programación General »

Configurar FromMail

Estas en el tema de Configurar FromMail en el foro de Programación General en Foros del Web. Bueno, ya se que mi Server soporte CGI - Perl, pero lo que nesesito ahora es Configurar es el Frommail . Como comfiguro a FormMail ...
  #1 (permalink)  
Antiguo 21/03/2004, 11:07
 
Fecha de Ingreso: septiembre-2003
Ubicación: Santo Domingo - R. Dominicana
Mensajes: 606
Antigüedad: 20 años, 7 meses
Puntos: 0
Pregunta Configurar FromMail

Bueno, ya se que mi Server soporte CGI - Perl, pero lo que nesesito ahora es Configurar es el Frommail .

Como comfiguro a FormMail para que funciona en mi Server ??

Espero Respuesta. . . .
  #2 (permalink)  
Antiguo 22/03/2004, 06:43
Avatar de monoswim
$moderador{'Esteban'}
 
Fecha de Ingreso: febrero-2002
Ubicación: Buenos Aires - Argentina
Mensajes: 8.762
Antigüedad: 22 años, 2 meses
Puntos: 90
Varios pasos a seguir...

Primero tienes que habrir el formMail.pl o .cgi con el block de notas y configurar las variables que hay en la babecera, por ejemplo en @referers tienes que poner el nombre de tu web....

Hay varias variables más que no me acuerdo pero que las puedes leer en el Readme File

Ahora bien, tienes que subirlo al directorio CGI-BIN o Local-CGI, o el directorio que te den para ejecutar los CGI's....

Luego a ese archivo le tienes que dar permisos de ejecución CHMOD 755...Para que los usuarios lo puedan ejecutar solamente.

Espero que te sirva
__________________
Esteban Quintana
  #3 (permalink)  
Antiguo 22/03/2004, 07:13
 
Fecha de Ingreso: septiembre-2003
Ubicación: Santo Domingo - R. Dominicana
Mensajes: 606
Antigüedad: 20 años, 7 meses
Puntos: 0
Hola

Bueno, mira, las variables de Configuración que me pide son:

$mailprog = '/usr/lib/sendmail -i -t';

@referers = ('nativoscigars.com','200.88.7.169');

@recipients = &fill_recipients(@referers);

@valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_U SER_AGENT');

Listo. . .

@referers = ('nativoscigars.com','200.88.7.169');

Es mi Web,

Pero no se como sigo configurando esto . . .
Yo mismo soy mi Server, yo tengo un Servidor Web. .

Salud@s
  #4 (permalink)  
Antiguo 22/03/2004, 08:18
Avatar de monoswim
$moderador{'Esteban'}
 
Fecha de Ingreso: febrero-2002
Ubicación: Buenos Aires - Argentina
Mensajes: 8.762
Antigüedad: 22 años, 2 meses
Puntos: 90
$mailprog = La ubicación de tu programa SENDMAIL

@recipients = &fill_recipients(@referers); --- Esto creo que lo pasas por parámetro desde el formulario en HTML poniendo un campo hidden (oculto) que tenga la, las direcciones

@valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_U
SER_AGENT');

@valid_ENV tiene un listado de las variables de entorno que se deben usar para el normal funcionameinto del script, si tu servidor no puede usar alguna quítala.

Fíjate bien que la primera linea del script dice algo como:
#!usr/bin/perl

Esta linea contiene la ubicación del interprete de perl, necesario para ejecutar el programa...Fíjate bien que sea la dirección correcta....Por ejemplo si tienes un servidor windows esa linea será de la forma:
#!c:/perl/bin/perl.exe

Espero que te sirva
PD: Que servidor usas??? (Sistema operativo)
__________________
Esteban Quintana
  #5 (permalink)  
Antiguo 22/03/2004, 08:31
 
Fecha de Ingreso: septiembre-2003
Ubicación: Santo Domingo - R. Dominicana
Mensajes: 606
Antigüedad: 20 años, 7 meses
Puntos: 0
Bueno, yo lo tengo COnfigurado Así.

Cita:
#!C:/Server/Perl/bin/perl.exe
################################################## ############################
# FormMail Version 1.92 #
# Copyright 1995-2002 Matt Wright [email protected] #
# Created 06/09/95 Last Modified 04/21/02 #
# Matt's Script Archive, Inc.: http://www.scriptarchive.com/ #
################################################## ############################
# COPYRIGHT NOTICE #
# Copyright 1995-2002 Matthew M. Wright All Rights Reserved. #
# #
# FormMail may be used and modified free of charge by anyone so long as this #
# copyright notice and the comments above remain intact. By using this #
# code you agree to indemnify Matthew M. Wright from any liability that #
# might arise from its use. #
# #
# Selling the code for this program without prior written consent is #
# expressly forbidden. In other words, please ask first before you try and #
# make money off of my program. #
# #
# Obtain permission before redistributing this software over the Internet or #
# in any other medium. In all cases copyright and header must remain intact. #
################################################## ############################
# ACCESS CONTROL FIX: Peter D. Thompson Yezek #
# http://www.securityfocus.com/archive/1/62033 #
################################################## ############################
# Define Variables #
# Detailed Information Found In README File. #

# $mailprog defines the location of your sendmail program on your unix #
# system. The flags -i and -t should be passed to sendmail in order to #
# have it ignore single dots on a line and to read message for recipients #

$mailprog = '/usr/lib/sendmail -i -t';

# @referers allows forms to be located only on servers which are defined #
# in this field. This security fix from the last version which allowed #
# anyone on any server to use your FormMail script on their web site. #

@referers = ('nativoscigars.com','200.88.7.169');

# @recipients defines the e-mail addresses or domain names that e-mail can #
# be sent to. This must be filled in correctly to prevent SPAM and allow #
# valid addresses to receive e-mail. Read the documentation to find out how #
# this variable works!!! It is EXTREMELY IMPORTANT.

@recipients = &fill_recipients(@referers);

# ACCESS CONTROL FIX: Peter D. Thompson Yezek #
# @valid_ENV allows the sysadmin to define what environment variables can #
# be reported via the env_report directive. This was implemented to fix #
# the problem reported at http://www.securityfocus.com/bid/1187 #

@valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_U SER_AGENT');

# Done #
################################################## ############################
Cuando hablas sobre el Programa SendMail, a que te refieres . . Yo no tengo ningun programa . . .

Dime como lo tengo configurado el FromMail funciona lo que cuando lo ejecuto no me envia el Mail sino me sale lo Siguiente. .

Cita:
There was no recipient or an invalid recipient specified in the data sent to FormMail. Please make sure you have filled in the recipient form field with an e-mail address that has been configured in @recipients. More information on filling in recipient form fields and variables can be found in the README file.
Pero no resivo nada. .

Última edición por 2Fast To You; 22/03/2004 a las 08:40
  #6 (permalink)  
Antiguo 22/03/2004, 08:33
 
Fecha de Ingreso: septiembre-2003
Ubicación: Santo Domingo - R. Dominicana
Mensajes: 606
Antigüedad: 20 años, 7 meses
Puntos: 0
Ah, mi Formulario lo tengo conifgurado de la Siguiente Manera. .

Código PHP:
<form name="form1" method="post" action="http://nativoscigars.com/cgi-bin/FormMail.pl">
  <
p align="center">
  <
input type=hidden name="recipient" value="[email protected]">
  <
input type=hidden name="subject" value="Your Subject">
  <
input type=hidden name="required" value="nombre,apellidos,email">
  <
input type=hidden name="title" value="Feedback Form Results">
</
p>
  <
p>Email:
    <
input type=text name="email">
  </
p>
  <
p>Nombre
    <
input name="nombre" type="text" id="nombre">
</
p>
  <
p>Apellidos
    <
input name="apellidos" type="text" id="apellidos">
</
p>
  <
p>Mensaje
    <
textarea name="textarea" cols="50"></textarea>
</
p>
  <
p align="center">
    <
input type="submit" name="Submit" value="Enviar">
    <
input type="reset" name="Submit2" value="Restablecer">
  </
p>
</
form
Y mi server esta en Windows Server 2003
  #7 (permalink)  
Antiguo 22/03/2004, 08:52
Avatar de monoswim
$moderador{'Esteban'}
 
Fecha de Ingreso: febrero-2002
Ubicación: Buenos Aires - Argentina
Mensajes: 8.762
Antigüedad: 22 años, 2 meses
Puntos: 90
Ese es justo el Problema!!!

El problema está en que para enviar un formulario por mail, necesitas tener un programita de servidor que permita mandar mails...En Linux ese programa se llama SendMail y es exactamente lo que estás poniendo vos como que lo tenés:

$mailprog = '/usr/lib/sendmail -i -t';

Esa dirección /usr/lib/sendmail -i -t es para un servbidor linux, no windows!!!!!!!

Para mandar mails en windows tienes que usar un modulo de perl...Lee el siguiente tutorial que te explica como hacerlo.

http://perlenespanol.baboonsoftware....ut/000050.html

Espero que te sirva
__________________
Esteban Quintana
  #8 (permalink)  
Antiguo 23/03/2004, 11:43
Avatar de boilmar  
Fecha de Ingreso: marzo-2002
Mensajes: 31
Antigüedad: 22 años, 1 mes
Puntos: 0
Mira a ver si te sirve este

www.boilmar.com/cgi-bin/formweb.pl


Última edición por boilmar; 18/06/2004 a las 05:11
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 09:32.