welchs101
Newbie
Offline
Posts: 1
|
 |
« Reply #60 on: October 06, 2008, 04: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
|
|
|
|
|
Logged
|
|
|
|
|
|
penny16
Newbie
Offline
Posts: 1
|
 |
« Reply #62 on: October 25, 2008, 09: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.
|
|
|
|
|
Logged
|
|
|
|
bluntroller
Newbie
Offline
Posts: 1
|
 |
« Reply #63 on: February 10, 2009, 09:33:27 PM » |
|
******************************************************************* $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.
|
|
|
|
|
Logged
|
|
|
|
aufbau8884
Newbie
Offline
Posts: 1
|
 |
« 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.comRight 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.
|
|
|
|
|
Logged
|
|
|
|
angelad
Trekkie

Offline
Posts: 19
|
 |
« Reply #65 on: June 20, 2009, 05:33:40 PM » |
|
From the looks of it, this is a great read and tut. This is a great time saver for future references 
|
|
|
|
|
Logged
|
|
|
|
|
jyurow
|
 |
« Reply #66 on: September 02, 2009, 05: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.
|
|
|
|
|
Logged
|
|
|
|
brooke618
Newbie
Offline
Posts: 2
|
 |
« Reply #67 on: September 06, 2009, 08: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?
|
|
|
|
|
Logged
|
|
|
|
brooke618
Newbie
Offline
Posts: 2
|
 |
« Reply #68 on: September 07, 2009, 02: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?
|
|
|
|
|
Logged
|
|
|
|
deandavis1
Newbie
Offline
Posts: 4
|
 |
« Reply #69 on: October 06, 2009, 06:21:27 AM » |
|
 Thank you this is excellent. Can you tell me if there is a way to capture a persons IP address in the form?
|
|
|
|
|
Logged
|
|
|
|
|
paradajz1
|
 |
« Reply #70 on: October 23, 2009, 04:55:56 AM » |
|
This was really helpful  It really works  Thank You!
|
|
|
|
« Last Edit: October 23, 2009, 04:57:27 AM by paradajz1 »
|
Logged
|
|
|
|
kdorsey
Trekkie

Offline
Posts: 16
|
 |
« Reply #71 on: January 17, 2010, 03:02:20 PM » |
|
Hehe, he said he was a newbie, no need to rub it in 
|
|
|
|
|
Logged
|
|
|
|
b_sleeth
Newbie
Offline
Posts: 1
|
 |
« Reply #72 on: August 10, 2010, 05: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: @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: @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.
|
|
|
|
|
Logged
|
|
|
|
|