Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
  • 50 Partners Needed For Media Trading Website (In: I Want to Sell My Website)
  • Myspace layouts website, feedback needed (In: Site Review Please!)
  • Featured Web Site Template

    Hundreds More at Free Site Templates.com!

    Web Site Partners
    Sponsored Links
    Jet City Software
     
    Whos Here ?
    Reflects user activity within the last 5 minutes
    Moderator(s): Prowler, jcokos
    Member Message

    brnm98105
    Joined: Mar 08, 2005
    # Posts: 17

    View the profile for brnm98105 Send brnm98105 a private message

    Posted: 2005-May-02 17:31
    Edit Message Delete Message Reply to this message

    I cannot to save my life get this to redirect to the page I want it to. Can someone help

    The page I want it to go to is mydomain.com/emailthank.htm

    I appreciate if someone will help me

    The script is as follows:



    Code: [copy]






    [ Message was edited by: bhartzer 10/18/2006 08:24 am ]



    [ Message was edited by: bhartzer 11/09/2006 02:17 pm ]





    Prowler
    Staff
    Joined: Aug 14, 2000
    # Posts: 1795

    View the profile for Prowler Send Prowler a private message

    Posted: 2005-May-03 15:55
    Edit Message Delete Message Reply to this message

    Change this part of the code:


    Code: [copy]




    --------
    to :


    Code: [copy]




    and comment out the rest below in this sub routine.

    Please note that after the $target_destination there must be a backslash followed by "n" and again a backslash followed by another "n".


    [ Message was edited by: bhartzer 10/18/2006 08:26 am ]





    pmr77
    Joined: Mar 14, 2005
    # Posts: 6

    View the profile for pmr77 Send pmr77 a private message

    Posted: 2005-Jun-27 15:35
    Edit Message Delete Message Reply to this message

    Hello,
    I just have a quick question if anyone knows what is causing this problem please help!

    I am using nms_formail.pl
    And getresponse to host my list.
    It is all working fine apert form the name part on the form.
    I have <input type="text" name="realname" size="30">
    as per the formail instructions.
    however once the form is sent getresponse does not pick up on the name field and just says "friend" where I have asked for [[firstname]]
    ???
    Any ideas?

    Thanks




    uta
    Joined: Oct 18, 2006
    # Posts: 1

    View the profile for uta Send uta a private message

    Posted: 2006-Oct-18 13:12
    Edit Message Delete Message Reply to this message

    hello,

    i have been trying to configure formmail for two days now, but keep getting the following error message:

    The header fields, which include recipient, email, realname and subject were filled in with invalid values.

    i would be incredebly thankful for anybody who can give a hint on what to do to get this work!

    best regards! uta

    My form looks as follows:
    ===========================


    < form action="http://www.mydomain.de/cgi-bin/FormMail.pl" method="POST" enctype="text/plain" class="style3" >
    <input type=hidden name="recipient" value="mydomain.de">
    <input type=hidden name="subject" value="Fragebogen">
    <input type=hidden name="redirect" value="http://www.mydomain.de">
    <input type=hidden name="required" value="Vorname, Nachname, Adresse">

    <div>
    <table width="648" border="1" cellpadding="7" cellspacing="0" bgcolor="#E0E0E0">

    <tr>
    <td align="right">Vorname:</td>
    <td><input name="Vorname" type="text" size="30" maxlength="30"></td>
    </tr>
    <tr>
    <td align="right">Nachname:</td>
    <td><input name="Nachname" type="text" size="30" maxlength="40"></td>
    </tr>
    <tr>
    <td align="right" valign="top">Adresse</td>
    <td><textarea name="Adresse" rows="0" cols="40"></textarea></td>
    </tr>
    <tr>
    <td align="right"></td>
    <td><input name="submit" type="submit" value=" Fragebogen anfordern! "> </td>
    </tr>
    </table>
    <p>

    </p>
    </div>
    </form>


    ============================



    an excerpt from my FormMail.pl looks like this:
    ============================


    # $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/sbin/mailsend -f uta@mydomain.de -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 = ('mydomain.de', 'anotherdomain.de');

    # @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 [link] #

    @valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_USER_AGENT');

    # Done #
    ##############################################################################

    # Check Referring URL
    &check_url;

    # Retrieve Date
    &get_date;

    # Parse Form Contents
    &parse_form;

    # Check Required Fields
    &check_required;

    # Send E-Mail
    &send_mail;

    # Return HTML Page or Redirect User
    &return_html;

    # NOTE rev1.91: This function is no longer intended to stop abuse, that #
    # functionality is now embedded in the checks made on @recipients and the #
    # recipient form field. #

    sub check_url {

    # Localize the check_referer flag which determines if user is valid. #
    local($check_referer) = 0;

    # If a referring URL was specified, for each valid referer, make sure #
    # that a valid referring URL was passed to FormMail. #

    if ($ENV{'HTTP_REFERER'}) {
    foreach $referer (@referers) {
    if ($ENV{'HTTP_REFERER'} =~ mhttps?://([^/]*)$refereri) {
    $check_referer = 1;
    last;
    }
    }
    }
    else {
    $check_referer = 1;
    }

    # If the HTTP_REFERER was invalid, send back an error. #
    if ($check_referer != 1) { &error('bad_referer') }
    }

    sub get_date {

    # Define arrays for the day of the week and month of the year. #
    @days = ('Sunday','Monday','Tuesday','Wednesday',
    'Thursday','Friday','Saturday');
    @months = ('January','February','March','April','May','June','July',
    'August','September','October','November','December');

    # Get the current time and format the hour, minutes and seconds. Add #
    # 1900 to the year to get the full 4 digit year. #
    ($sec,$min,$hour,$mday,$mon,$year,$wday) = (localtime(time))[0,1,2,3,4,5,6];
    $time = sprintf("%02d:%02d:%02d",$hour,$min,$sec);
    $year += 1900;

    # Format the date. #
    $date = "$days[$wday], $months[$mon] $mday, $year at $time";

    }

    sub parse_form {

    # Define the configuration associative array. #
    %Config = ('recipient','', 'subject','', 'email','', 'realname','',
    'redirect','', 'bgcolor','',
    'background','', 'link_color','',
    'vlink_color','', 'text_color','',
    'alink_color','', 'title','',
    'sort','', 'print_config','',
    'required','', 'env_report','',
    'return_link_title','', 'return_link_url','',
    'print_blank_fields','', 'missing_fields_redirect','');

    # Determine the form's REQUEST_METHOD (GET or POST) and split the form #
    # fields up into their name-value pairs. If the REQUEST_METHOD was #
    # not GET or POST, send an error. #
    if ($ENV{'REQUEST_METHOD'} eq 'GET') {
    # Split the name-value pairs
    @pairs = split(/&/, $ENV{'QUERY_STRING'});
    }
    elsif ($ENV{'REQUEST_METHOD'} eq 'POST') {
    # Get the input
    read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});

    # Split the name-value pairs
    @pairs = split(/&/, $buffer);
    }
    else {
    &error('request_method');
    }

    # For each name-value pair: #
    foreach $pair (@pairs) {

    # Split the pair up into individual variables. #
    local($name, $value) = split(/=/, $pair);

    # Decode the form encoding on the name and value variables. #
    # v1.92: remove null bytes #
    $name =~ tr/+/ /;
    $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
    $name =~ tr/

    ]


    [ Message was edited by: bhartzer 10/18/2006 08:31 am ]



    [ Message was edited by: bhartzer 10/18/2006 08:32 am ]



    [ Message was edited by: bhartzer 11/09/2006 02:18 pm ]





    Prowler
    Staff
    Joined: Aug 14, 2000
    # Posts: 1795

    View the profile for Prowler Send Prowler a private message

    Posted: 2006-Oct-19 12:15
    Edit Message Delete Message Reply to this message

    Welcome Aboard uta. I have downloaded the FormMail.pl and on filling up the required configuration parameters, it worked without any hitch. As they have added more security features to the basic script, it is essential that you start at the beginning and fill in the details as required very carefully.

    Unless we see your version, it is difficult to predict where it is failing.
    Comment out &check_url; to see if this is the part which triggers the error. If not comment out the &check_required;




    You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
    1. You have not yet logged in, or registered properly as a member
    2. You are a member, but no longer have posting rights.
    3. This is a private forum, for which you do not have permissions.

    If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

    If you cannot find this message, click here to Re-Send it.

    If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

    Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

    New posts Forum is locked
    © 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions