FormMail.pl

Discussion in 'Scripts' started by Ology777, Aug 4, 2008.

  1. #1
    I'm using FormMail.pl created by Matt Wright (2002 version).

    I've got everything set up but I'm getting an error message

    "Error: Bad/No Recipient
    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."

    I'm trying to update the @recipients part now but when I do I get...

    "Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, or webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log."

    I think I just either entering the code incorrectly or I'm attempting to edit the wrong recipients field :confused:

    Here is the section of code that I'm editing within the FormMail.pl file...

    _________________________________
    the recipient address end with #
    # a valid domain or e-mail address as

    defined in @recipients. #
    $valid_recipient = 0;
    foreach

    $send_to (split(/,/,$Config{'recipient'})) {
    foreach $recipient

    (@recipients) {
    if ($send_to =~ /$recipient$/i) {


    push(@send_to,$send_to); last;
    }
    }
    }


    if ($#send_to < 0) { &error('no_recipient') }
    $Config{'recipient'} =

    join(',',@send_to)
    __________________________

    when I change (@recipients) to (@recipients = &fill_recipients(@referers)) like I think I'm supposed to thats when I get the internal server error message

    Can anybody help me? This is my first attempt toying with perl so I'm really new!
     
    Ology777, Aug 4, 2008 IP
  2. bigtime

    bigtime Peon

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you place this in your form?

    <input type=hidden name="recipient" value="email@your.host.com">

    Try this for recipients:

    @recipients = (&fill_recipients('^email@youremail\.com');

    Chmod the form to 755 and upload in ascii mode.

    Hope that helps,

    Tim
     
    bigtime, Aug 4, 2008 IP
  3. Ology777

    Ology777 Guest

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the help! its working perfectly now!
     
    Ology777, Aug 7, 2008 IP