
18/05/2009, 14:37
|
| | Fecha de Ingreso: marzo-2009
Mensajes: 31
Antigüedad: 16 años Puntos: 1 | |
Respuesta: problema formulario perl programa para enviar mails ?? yo creia que era el dcforms98.cgi xD
he encontrado este sendmail-8.14.3 en ...sendmail.org/releases/8.14.3 a este te refieres? que ruta tendria que poner?
Resumen de lo que hice:
1.He ido a ...perl.astalaweb.net/Correo%20-%20Formularios/1_Correo%20-%20Formularios.asp y he descargado el primer formulario
2.dentro hay dcforms98,readme,sample
3.he modificado el dcforms98 y el sample con el dremweaver
4.he copiado via ftpfilezilla dcforms98 en cgi-bin y el sample en html
en directorio / tengo las carpetas: logs,html,errors,data,cgi-bin he cambiado los permisos de data a valor777 en el readme sale data con 'D' no con 'd' y tampoco uso base de datos..
En el readmen sale:
DCForms98 contains following files:
1) dcforms98.cgi (755) - main script
2) sample.html - sample e-mail form page
################################################## #########################
Setting up DCForms98
Editing dcforms98.cgi
1) The very first statement
#!/usr/sbin/perl5
should correctly point to the location of
PERL 5 on your ISP's server.
2) Properly define location of Mail Program
$mailprog = '/usr/lib/sendmail';
3) If you intend on saving form data to a database, define
the ocation where database file will be kept THIS DIRECTORY MUST BE 777
$datadir = "./Data";
4) Define your server's domain name. This ensures that the form is submitted
from your server.
$url = "w,w,w,.yourdomain.com";
################################################## #########################
Installing DCForms98
1) Upload dcforms98.cgi to your cgi-bin directory
2) Chmod dcforms98.cgi to 755
3) If you will be using database option,
create a directoy named "Data" and set permission to 777
You can create this directory anywhere you want...just make sure
you define $datadir path in dcforms98.cgi file
PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!
- Make sure you use ASCII mode when you transfer these files
- Make sure your data directory is set to 777
################################################## #########################
Using DCForms98
Take a look at sample.html. You will need to embedd following hidden
variables in your Form html file.
1) param_recipient - recipient(s)' email addresses...delimit multiple emails by a comma
2) param_subject - Subject of the formmail
3) param_env_report - If you wish to record some environment variabls, list them here. If you don't know what environment variables are, leave the value blank
4) param_order - Order of fields you want to send...warning, case-sensitive. If you leave this blank, it will list all fields sorted by names
5) param_database - name of the data file you want to save form data
6) param_required - Fields required
################################################## ##########################
En la informacion de mi hosting dice:
CGI-BIN propio
Es el nombre de una carpeta especial dentro del espacio en disco de tu Web Hosting,
con permisos especiales, para que puedas publicar tus scripts en Perl o Python.
Te recomendamos el uso de dicha carpeta para ubicar todos tus scripts, dado que ya
tiene todos los permisos necesarios para que puedas ejecutarlos con total seguridad.
Última edición por arnair; 18/05/2009 a las 15:08 |