Web Hosting Forum | Lunarpages

Author Topic: Setting up NMS FormMail  (Read 86693 times)

Offline mfaisalm

  • Newbie
  • *
  • Posts: 5
Re: Setting up NMS FormMail
« Reply #15 on: October 24, 2005, 11:37:38 AM »
"Step 3) Upload the file to your cgi-bin in ASCII (text mode) and chmod (set permissions) to 755"

Can you please tell me how to setup Chmod permission to 775?

Offline mfaisalm

  • Newbie
  • *
  • Posts: 5
Re: Setting up NMS FormMail
« Reply #16 on: October 24, 2005, 11:48:45 AM »
This is the error msg I receive when I try to run mymail.pl (NMS formmail) file.

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@travellingtutors.com 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.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.33 Server at www.travellingtutors.com Port 80

leighsww

  • Guest
Re: Setting up NMS FormMail
« Reply #17 on: October 24, 2005, 12:06:32 PM »
Please DO NOT post to this thread. I have seen your other thread, and have responded there. The Chmod permissions should be 755 NOT 775. Instructions on setting the permissions are on the previous page of this thread, 2nd post from the bottom.

Offline Digital_Boy

  • Trekkie
  • **
  • Posts: 16
  • "No one will notice that..."
Re: Setting up NMS FormMail
« Reply #18 on: March 23, 2006, 01:53:24 AM »
Thanks for the "how-to".  It was very helpful.

I hope it's ok to post a suggestion here.  It may seem obvious but given I haven't done this stuff in a LONG time, it would have been helpful to me.  Some people will use this with NO form/perl experience at all.

In step #4 you should change the value="user@yourdomain.com" to value=""

Given the pattern you established previously, that code block should either be exactly right, or you should specifically state what to change it to, or it should fall under the rule you set at the beginning with respect to inserting email and domain names.

Thanks again for the help.  Sure hope it's ok to add this.  I could understand your frustration with people asking for help in this thread when you've said don't several times.

DB
Digital_Boy

leighsww

  • Guest
Re: Setting up NMS FormMail
« Reply #19 on: March 23, 2006, 10:29:42 AM »
A suggestion is fine to post here  :thumb: (it's only when asking for help that it's better to have people start a new thread)

Quote from: Digital_Boy
In step #4 you should change the value="user@yourdomain.com" to value=""

Thank you for your suggestion, it is a good one and I have made the change  :thumb:

Offline bright

  • Pong! (the videogame) Master
  • *****
  • Posts: 20
    • Peterborough Linux User Group (PLUG)
Re: Setting up NMS FormMail
« Reply #20 on: May 21, 2006, 08:46:43 PM »
Thanks for this! :yey: I know zero Perl and just as much PHP so this is quite handy. And I feel good knowing that it's safe to use. Not to mention it'll be handy not being added to any spam lists via email link harvesters. Here's where and how I used it:

http://plugintolinux.ca/contactus.shtml

And the thank you page is here:

http://plugintolinux.ca/thankyou.shtml

The only thing that confused me is that I kept getting email from nobody @ prospero.lunarpages.com and that's when I realized that the email line in step four didn't replace the line in step 3. I thought it did, except that hidden had to be changed to textbox (thought that was a mistake). Usually I can follow directions well, but sometimes I overthink things! :)
« Last Edit: May 21, 2006, 08:50:21 PM by bright »
Jason

Offline pzh20

  • Newbie
  • *
  • Posts: 1
Re: Setting up NMS FormMail
« Reply #21 on: July 25, 2006, 05:20:08 AM »
I have a problem that I want to send email to any email address, not that specified in the @recipients array. My application sends an email from one user to a customer of mine. The email address for the recipient is stored in my database.

How can I get formmail to send to any email address or how can I pass it the email address it is allowed to use.

Many thanks
Pete

leighsww

  • Guest
Re: Setting up NMS FormMail
« Reply #22 on: July 26, 2006, 06:54:28 PM »
I don't believe that the NMS FormMail can retrieve email addresses from a database or text file to use for the recipient.

That would probably take tweaking of the inner workings of the code from someone who knows perl.

Offline khoelscher

  • Newbie
  • *
  • Posts: 2
Re: Setting up NMS FormMail
« Reply #23 on: September 16, 2006, 07:59:57 AM »
OK, I got this setup, and after a couple of trys, it worked!

Now, I have a couple of questions. I would really like to either email the form iputs to the user in the confirm page, or, as an alternative, display the fields on the 'thank-you' page. Is this possible?

Offline descarga

  • Trekkie
  • **
  • Posts: 12
    • http://rollingearth.org
Re: Setting up NMS FormMail
« Reply #24 on: November 20, 2006, 10:10:03 AM »
Thanks for this -- very clear, worked right away -- so much better than my attempt to set up tfmail! :clap:

Offline Baseltje

  • Trekkie
  • **
  • Posts: 12
Re: Setting up NMS FormMail
« Reply #25 on: January 15, 2007, 10:35:27 AM »
There was one misunderstanding in my reading of the permission part.
The permission 755 is not only for the pl file but also for the cgi-bin file!
That was the reason I got the server error!
Thank you for the clear way to get this script working.
John Baselmans :shades:

leighsww

  • Guest
Re: Setting up NMS FormMail
« Reply #26 on: January 15, 2007, 03:24:43 PM »
There was one misunderstanding in my reading of the permission part. The permission 755 is not only for the pl file but also for the cgi-bin file!

Ahh, I normally don't indicate that in the tutorial, because the cgi-bin has the permissions already set by default. The only way it would not be set correctly is if you created your own cgi-bin or if it was changed/reset incorrectly  :)

In any case, the permissions on the cgi-bin is good to double-check, just in case  :thumb:   

Offline sodani

  • Space Explorer
  • ***
  • Posts: 6
Re: Setting up NMS FormMail
« Reply #27 on: February 01, 2007, 10:44:07 AM »
Does anyone know how to incorporate a captcha into a web form while using nms formmail? I'm getting spammed through nms formmail. The only solutions I've found submit form data using php.

leighsww

  • Guest
Re: Setting up NMS FormMail
« Reply #28 on: February 01, 2007, 11:48:09 AM »
What you could do is to use a graphic image with a simulated captcha code and make the input a required field.

Even though the captcha code will always remain the same, that will at least hinder the bots from attacking you, because something still has to be typed in manually (unless they have configured a way to enter data for ANY required field :?, I'm not a Spammer, so I don't know how they setup those bot thingys :)).

If your Spammers, however, are manually filling out your form to spam you (not via bots), then this won't work, I'm afraid.

If you do give this a try, please post back here if that works for you, because in the past we always just told people to switch to a php method, so if it works, then it's at least an alternative with those who want to keep using the NMS FormMail script.
« Last Edit: February 01, 2007, 11:56:20 AM by leighsww »

Offline sodani

  • Space Explorer
  • ***
  • Posts: 6
Re: Setting up NMS FormMail
« Reply #29 on: February 01, 2007, 12:05:42 PM »
Will I lose any benefits if I go to the php method? I originally had a php script sending the form, but lunarpages told me that I had to switch to nms formmail or else they would take my script down.

 

Share |