Web Hosting Forum | Lunarpages

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

Offline welchs101

  • Newbie
  • *
  • Posts: 1
Re: Setting up NMS FormMail
« Reply #60 on: October 06, 2008, 03:14:17 AM »
Hi,

I am a newbie at this so i hope i dont ask really dumb questions but i have reviewed the nms instructions and i have a few questions:

a)  Understep 2 of the NMS instructions it says for windows servers click here and follow these instructions.  How do i know if i am using a windows server?

b)  In step 3 it says to upload ".pl" file to the folder on the server "cgi".  Ok.......is this something i can do via the c-panel?  Whats the best way to do this?

c)  In step 3 .... i am a little confused.  Do i also upload the ".pl" file to the "chmod" folder?  What if i dont have a "chmod" folder?

d)  The 2nd major section of the instructions entitled "THE HTML FORM".........do i need to do this or is this really just the same instructions as what was above in the section "THE FormMail.pl SCRIPT"

welchs101

Offline Kinpolmo

  • Trekkie
  • **
  • Posts: 14
Re: Setting up NMS FormMail
« Reply #61 on: October 21, 2008, 09:25:39 AM »
I think you lost me with wondering whether or not your using a Windows Server,  :roflmao: :rofl: ;D :nope: :happy: :clap:      :hiya: duh :help:

Offline penny16

  • Newbie
  • *
  • Posts: 1
Re: Setting up NMS FormMail
« Reply #62 on: October 25, 2008, 08:51:13 AM »
I'd like the users of my form to submit images to me.

In my form html I'm including:

<input type="file" name="FileToUpload01" size="60">

Then I test the form and browse, submit image...

When I receive my email, I get responses to all the other form fields... but no image.

Offline bluntroller

  • Newbie
  • *
  • Posts: 1
Re: Setting up NMS FormMail
« Reply #63 on: February 10, 2009, 09:33:27 PM »
*******************************************************************

Code: [Select]
$mailprog = '/usr/sbin/sendmail -oi -t';

I was also getting the Internal Server Error and determined it was because of this.  If I changed the code from the script to the above, I got the Internal Server Error. If I leave the default from the latest version from the script, it resolved that error.

Offline aufbau8884

  • Newbie
  • *
  • Posts: 1
Re: Setting up NMS FormMail
« Reply #64 on: February 18, 2009, 07:40:58 AM »
I am using an email list program that requires that the emails come in with the following format:

Name: User Name
Email: user@domain.com

Right now it sends it to me like this:


Below is the result of your feedback form.  It was submitted by
 (testaddress@domain.com) on Wednesday, February 18, 2009 at 09:05:23
---------------------------------------------------------------------------


Contact_FirstName: Test User

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


Can I modify this using the Perl file? If so, how do I do this? I can handle reading through code, but my Perl knowledge is very limited. Thanks.

Offline angelad

  • Trekkie
  • **
  • Posts: 19
Re: Setting up NMS FormMail
« Reply #65 on: June 20, 2009, 04:33:40 PM »
From the looks of it, this is a great read and tut.  This is a great time saver for future references

Offline jyurow

  • Space Explorer
  • ***
  • Posts: 7
Re: Setting up NMS FormMail
« Reply #66 on: September 02, 2009, 04:36:06 AM »
I am having trouble getting FormMail to work.  I have posted the problem at:

http://www.lunarforums.com/c_perl_cgi_support-b4.0/

with the title       "Help! FormMail script doesn't work on Lunarpages"

So far there have been over 100 views of my posting, but no responses (The only one shown is my own comment.).  NMS FormMail seems to be just the thing I need for my friend's website, but I honestly can not get it to work and need the help.  Would you or a member of your staff please help me with this.

Thanks.

Offline brooke618

  • Newbie
  • *
  • Posts: 2
Re: Setting up NMS FormMail
« Reply #67 on: September 06, 2009, 07:14:52 PM »
NMS FormMail works except that it does not use the "email" and "subject" fields correctly.

I make a form that sets email and subject (say, to "bob@bob.com" and "here is a subject", respectively).  On the results page, after clicking the "submit" button, it says "subject=here is a subject email=bob@bob.com".

Yet the e-mail I get from the submission always uses the default email and subject values (i.e., the e-mail is from "nobody@whatever.com", and the subject is "WWW Form Submission").

It seems like a bug in the script to me, as it lists the correct form field values but then does not use them in sending the e-mail.

Anyone have any ideas I how I can get the email and subject fields to work right?

Offline brooke618

  • Newbie
  • *
  • Posts: 2
Re: Setting up NMS FormMail
« Reply #68 on: September 07, 2009, 01:41:03 PM »
The NMS FormMail folks told me how to fix this, and it worked perfectly.

Try changing the form opening line from this (this is the form statement that I had in my html):

<form action="/cgi-bin/ahpatches.pl" method="post"
enctype="text/plain" name="order_patches" id="order_patches">

to this:

<form action="/cgi-bin/ahpatches.pl" method="post">

NMS FormMail works except that it does not use the "email" and "subject" fields correctly.

I make a form that sets email and subject (say, to "bob@bob.com" and "here is a subject", respectively).  On the results page, after clicking the "submit" button, it says "subject=here is a subject email=bob@bob.com".

Yet the e-mail I get from the submission always uses the default email and subject values (i.e., the e-mail is from "nobody@whatever.com", and the subject is "WWW Form Submission").

It seems like a bug in the script to me, as it lists the correct form field values but then does not use them in sending the e-mail.

Anyone have any ideas I how I can get the email and subject fields to work right?

Offline deandavis1

  • Newbie
  • *
  • Posts: 4
Re: Setting up NMS FormMail
« Reply #69 on: October 06, 2009, 05:21:27 AM »
 :clap:  Thank you this is excellent.  Can you tell me if there is a way to capture a persons IP address in the form?

Offline paradajz1

  • Pong! (the videogame) Master
  • *****
  • Posts: 23
Re: Setting up NMS FormMail
« Reply #70 on: October 23, 2009, 03:55:56 AM »
This was really helpful :happy: It really works :clap: Thank You!
« Last Edit: October 23, 2009, 03:57:27 AM by paradajz1 »

Offline kdorsey

  • Trekkie
  • **
  • Posts: 16
Re: Setting up NMS FormMail
« Reply #71 on: January 17, 2010, 03:02:20 PM »
I think you lost me with wondering whether or not your using a Windows Server,  :roflmao: :rofl: ;D :nope: :happy: :clap:      :hiya: duh :help:


Hehe, he said he was a newbie, no need to rub it in  :java:

Offline b_sleeth

  • Newbie
  • *
  • Posts: 1
Re: Setting up NMS FormMail [RESOLVED: Internal Server Error]
« Reply #72 on: August 10, 2010, 04:14:05 PM »
Thank you for this post.  I followed your steps several times, but kept getting the dreaded 500 Internal Server Error.  I finally broke down and looked at my server logs and saw that the script was getting a Premature end of script headers error.  In my case, I figured, this indicated unbalanced quotes or missing quotes.  I had changed some of the configuration stuff as follows:
Code: [Select]
  @referers          = qw(domain.com localhost);
  @allow_mail_to     = qw(user@domain.com localhost);
  @recipients        = (user@domain.com);

All I needed to do was to add quotes to the value I used for the the "@recipients".  So, the correct values were:
Code: [Select]
  @referers          = qw(domain.com localhost);
  @allow_mail_to     = qw(user@domain.com localhost);
  @recipients        = ('user@domain.com');

I am not sure if I needed the parenthesis around the value or not, but it works with them.  I also assume that if I wanted to send the email to multiple recipients, I would need to use the qw() (function?) like @allow_mail_to value.

Offline kathleenp980

  • Newbie
  • *
  • Posts: 1
Re: Setting up NMS FormMail
« Reply #73 on: September 15, 2010, 05:47:29 PM »
Thanks for the post.
 :welcome: :9: :happy: :hugs: :roflmao:



« Last Edit: September 15, 2010, 07:56:26 PM by katrina1 »

 

Share |