Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 7 of 7

This is a discussion on Need Help With FormMail Script :-( in the Open Discussion & Chit-chat forum
Hello everyone. I'm wondering if someone can assist me with this script I'm trying to create to create a FormMail work on another server that ...

  1. #1
    JPC Senior Member Ms_Lamborghini's Avatar
    Join Date
    Mar 2006
    Posts
    78

    Angry Need Help With FormMail Script :-(

    Hello everyone.

    I'm wondering if someone can assist me with this script I'm trying to create to create a FormMail work on another server that don't provide FormMail or assistance with the scripts

    Of course I prefer a free place where I can get the script from so I can uploaded to my server.
    I have been working for the past 5 days trying to get this going with no success..
    What I need is to know WHICH fields I need to replace and with what? That's it.. the problem I'm having is understanding the instructions.
    And also I'd like to know how or which method post I need to put on my page (forms) I used to know all of this many yrs ago but I forgotten...

    Anyway, here's the place with the script and if someone can translate this to plain English as to what I need to do before uploading it, would be much appreciated.. link is: http://www.scriptarchive.com/readme/...tml#setting_up

    Please Help :-)

    Thanks Mate
    Miss L

  2. #2

  3. #3
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Its been a while since I've used FormMail, but I'll take a stab at it.

    1. First, name the script something other than formmail.cgi. Spammers love looking for older, vulnerable copies of this script. Even though the new scripts are more secure, it never hurts to keep the spammers away.

    2. I believe the path to sendmail on JPC servers is /usr/sbin/sendmail.

    3. List the domain name and IP address of the remote server as well as your server as elements of @referrers array. This will serve a both the list of domains from which Formmail will accept form submissions and the list of recipient address domains to which Formmail will allow messages to be sent.

    4. If you need to send messages to recipeients with addresses on domains that are not included in those you specified in @referrers you'll need to modify the @recipients array. If this is not an issue, you can leave this alone. I'll assume the default is OK for now, as the explanation gets kind of complicated if it isn't. If you need to change this, let me know and I'll go into more detail.

    As for the form, you'll wnat to use the post method here. According to Internet standards, "post" is used whenever you are sending new information to the server, or modifying or removing something that's already there. Get is used when you are asking to get something that's already on the server without changing it. When get is used on a form, the fields are added to the query string of the URL and can be cached--get should be used for things like searches where you want to back button to work. Post requests are not cached and are therefore more secure.

    As for form fields, the only thing that's needed is the recipient field with a value set to the email address of the form's reciepient.

    [code]<input type="hidden" name="recipient" value="recipient@recipeientsdomain.com" />

    Other fields have special meaning and affect the final mail message. For example, if you set a subject field the value of it will be used as the subject of the mail message. Any other fields will be printed in the body of the message.

    Hope this helps.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  4. #4
    Nearly 100% Pure Carbon thecoalman's Avatar
    Join Date
    Nov 2007
    Location
    Northeast Pennsylvania
    Posts
    529
    I believe that script is outdated and full of security issues?

    I'd suggest using php's mail function but you need to make sure you validate the input. Simple example of how easy it is to use without validation:

    Code:
    <?php
    mail('you@yourdomain.com', 'Your Subject', 'Hello world');
    ?>
    If you open up your text editor, name it test.php . Upload to your server and then point your browser at it you should get a email.

    See the php manual on $_POST for how to integrate with a form.

    I'll say it again though, you need to validate. Put your reading glasses on.

  5. #5
    JPC Senior Member Ms_Lamborghini's Avatar
    Join Date
    Mar 2006
    Posts
    78
    Thanks to all of you.
    Very much appreciated.
    Excellent replies!!


    I may come back if I have to

    Miss L

  6. #6
    JPC Senior Member Ms_Lamborghini's Avatar
    Join Date
    Mar 2006
    Posts
    78
    Quote Originally Posted by rashad View Post
    I want this one with the error msgs.... I followed the instructions and uploaded it to my server and did the configuration and NADA! It doesn't work for me which is why I'm here asking for help to have someone translate the instructions to plain simple English please lol

    And now, how do I get this thing working?

    Thanks again!

    Miss L

  7. #7
    Loyal Client rashad's Avatar
    Join Date
    Nov 2006
    Posts
    196
    Hi,,,

    I hope this will help :

    http://www.quirksmode.org/dom/error.html
    My site:
    SMS

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •