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

FormMail. Error: Bad Header Fields

Estas en el tema de FormMail. Error: Bad Header Fields en el foro de Programación General en Foros del Web. Hola a todos, soy nuevo en el foro y aunque he buscado solución al problema en la web, no he logrado solucionarlo. El problema se ...
  #1 (permalink)  
Antiguo 29/04/2011, 17:30
Avatar de HiparcodNicea  
Fecha de Ingreso: abril-2011
Ubicación: Aqui y Alla
Mensajes: 11
Antigüedad: 13 años
Puntos: 0
Pregunta FormMail. Error: Bad Header Fields

Hola a todos, soy nuevo en el foro y aunque he buscado solución al problema en la web, no he logrado solucionarlo.

El problema se reduce a lo siguiente desde este enlace: http://www.ed-td.com/Project-Quotation.html, intento enviar un formulario de manera automatica utilizando formmail.

El error reportado es:

Error: Bad Header Fields
The header fields, which include recipient, email, realname and subject were filled in with invalid values. You may not include any newline characters in these parameters. More information on filling in these form fields and variables can be found in the README file.

Consultando con la documentación y con el hosting, se que el error esta en el script pero no logro ver el problema.

El script es el siguiente:

#!/usr/bin/perl
################################################## ############################
# FormMail Version 1.93 #
# Copyright 1995-2009 Matt Wright [email protected] #
# Created 1995-06-09 Last Modified 2009-07-14 #
# Matt's Script Archive, Inc.: http://www.scriptarchive.com/ #
################################################## ############################
# COPYRIGHT NOTICE #
# Copyright 1995-2009 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 #
# XSS + REDIRECT FIX: Francesco Ongaro, Giovanni Pellerano & Antonio Parata #
# v1.93 http://www.ush.it/team/ush/hack-formmail_192/adv.txt #
################################################## ############################
# 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';
$mailprog = '/usr/local/bin/sendmail -i -t';

# @referers allows forms to be located only on servers which are defined #
# in this field. This is a security fix to prevent others from using your #
# FormMail script on their web site. #

@referers = ('ed-td.com','direccion ip del hosting de pago');

# @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 #
################################################## ############################

en el form coloco el correspondiente hiden para el receipt.

Pero no logro encontrar solución.

Si alguien me puede dar la mano, les agradezco.

Etiquetas: bad, fields, formmail, header, perl-y-cgi
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 17:47.