View Full Version : FormMail.pl updated
Mr. Popularity
02-16-2002, 12:19 AM
Here it is, and its the same as the default one HR installs in the cgi-sys file, but this one has no bugs whatsoever. All of the functionality works. Just dump it in your cgi=bin, edit the two fields, and chmod to 755 and it works :)
lskumar
02-19-2002, 03:31 PM
urgent help wanted for formmail.pl file
friends
i have installed formmail on hostrocket
on my domain via the control panel
some time back.
presently emails (from my forms) go to
only one id (say first_id@mydomain.com )
it works fine.
now i also want emails (from my forms) to go to
second id as well (say second_id@mydomain.com )
i know the change to be done is
first_id@mydomain.com,second_id@mydomain.com
the problem is i do not know how to modify
the formmail.pl file via the control panel.
i could not find this file in the
file manager also.
i think there should be some easy way of
managing this formmail.pl file, but i do
not know how.
i tried creating tickets for this,
but so far got no response
except one, saying that i should add
the second_id after a comma.
where could i find this file ?
how could i edit this file ?
i think once i can find this file,
i can easily edit it :-)
but the problem is finding this file !!
please let me know.
thank u very much in advance for your help.
bye
suresh
Mr. Popularity
02-19-2002, 05:23 PM
in the file for the form itself, you need a recipient tag like this:
<input type="hidden" name="recipient" value="joe@home.com, dave@home.com">
that should do it.
testy_temp
02-20-2002, 03:30 AM
I am trying to set up a form mail on a website for people to send in their address info. I can't get it to send the data to the designated e-mail address.
Please help!
Here is the code that I have after hours of research...
<form method="post" action="/cgi-sys/FormMail.cgi?subject=Elyn
Mailing List" enctype="text/plain" name="form1" value="chris@elynmusic.com">
When the user presses the SUBMIT button, it should e-mail the data and open up the "thank you page." The "thank you page opens up fine, but it still does not connect to the e-mail address...
<input type=submit onclick="doit()" name="Submit"
value="Submit">
<input type="hidden" name="where"
value="http://www.elynmusic.com/thankyou.htm">
I appreciate any help you can throw my way! I'll attach the htm page in case it helps.
sanjiv
02-20-2002, 08:31 AM
I've made this thread sticky for people to read. Pretty good stuff in here. "testy_temp's" thread has been merged into this one from the "General" forum.
scron
02-26-2002, 06:32 PM
I heard from a very considerate Website person who had to call me how her friend uses a script that breaks apart the email address into "nonsensible" email address as a email spider could miss.
I tried using the script however it do not work with my "fun" HTML Form versus emailto:
Is there an easy work around that to:
1 Hide email addressed from spiders on websites AND
2 work with you HTML Form example fields filled in for name, date etc.
3 What is this Form mail thing?
Mr. Popularity
03-18-2002, 07:26 PM
Yeah, unfortunately, there's trailer trash out there who feel the need to harvest e-mail addys to spam people with. Pretty sad huh?
quick97
04-01-2002, 06:39 AM
I have tried to use the formail that HR supplies and I would just like to say it does the job but not very well. I always had trouble with sort_order and required_field. The emails were never sent to me in a decent format. I decided to look for my own formmail scripts and I came across a great form processor. Form Processor Pro by Mitridat http://www.mitridat.com will process any type of form you can come up with, even shopping carts, order forms ect and is great for customization (i.e. email autoresponders, preview pages, even error pages). This script uses customizable templates for everything and is easy to customize. The script only costs $24 dollars and is well worth it. I would recomend it to anyone that relies heavily on forms and likes the data layout to look the way they want. In fact I should suggest it to HR to replace the existing formmail because it is only $280 for a ISP license. Oh and there is no recipient field either the email addresses are all located seperately in the email templates so no spider will snatch your addresses and you can also keep clients addresses annonomous to snooping eyes(if thats what you want). If anyone wants help with this script or has any other ?'s drop me a line.
David
Steph
05-02-2002, 04:28 PM
I'm using your script that you posted and when I try to test it I keep get this message: "BAD REFERRER"The form attempting to use FormMail resides at http://www.unicorndesigns.ca/appl_test.html, which is not allowed to access this cgi script.
If you are attempting to configure FormMail to run with this form, you need to add the following to @referers, explained in detail in the README file.
Add 'www.unicorndesigns.ca' to your @referers array.
Yet I have www.unicorndesigns set as my referrer, this is how I have the formmail set:
$mailprog = '/usr/sbin/sendmail';
@referers = ('www.unicorndesigns.ca, 66.192.45.83');
@recipients = ('sdinnell@unicorndesigns.ca');
In my form I have it coded as:
<FORM METHOD="POST" ACTION="cgi-bin/formmail.cgi">
<INPUT TYPE="HIDDEN" NAME="recipient" VALUE="sdinnell@unicorndesigns.ca">
<INPUT TYPE="HIDDEN" NAME="Subject" VALUE="Employment Application Form">
<INPUT TYPE="HIDDEN" NAME="redirect" VALUE="http://www.unicorndesigns.ca/EXL/response.html">
So what have I done wrong here, I'm desperate to get this working today, I really appreciate any help. Thanks
Mr. Popularity
05-04-2002, 09:01 PM
ok, first, remove the www. from your @referers line, and remember that all *nix servers are CaSe SeNsItIvE, so make sure that if the file is named FormMail.pl that you leave it as such because on *nix servers, FormMail.pl and formmail.pl are two different files.
Steph
05-05-2002, 02:25 AM
Hi, thanks for the reply. I actually managed to get it working before I got your reply. I ended up scrapping everything and starting from scratch again and then it worked - no idea why, just one of those 'puter things, lol. I still had the www. in the referrers line when it worked, so that is weird if you say I should have taken it out. Oh well, I'm just happy it worked. Thanks!:)
Gerry
05-05-2002, 05:06 PM
I've submitted a TT to ask HR to permanently remove the "www" from one of my domains here. No reply yet (just submitted a few minutes ago at "low" priority, so don't construe that as a slam against HR!), but it would simplify things such as needing to enter the domain in the referrers list both ways. Here's the idea:
http://webword.com/moving/wwwremoval.html
I installed FormMail.pl but get this error when trying to run it:
Premature end of script headers: /home/norther/public_html/cgi-bin/FormMail.pl
Any ideas?
Thanks
Surbaugh
08-03-2002, 06:19 PM
Originally posted by Mr. Popularity
Here it is, and its the same as the default one HR installs in the cgi-sys file, but this one has no bugs whatsoever. All of the functionality works. Just dump it in your cgi=bin, edit the two fields, and chmod to 755 and it works :)
???? call me dumb but I have no idea how to set up the form mail, nor what 2 fields (and chmod) you are talking about. I have downlaoded the file above, but when I look at the contents I am confused. How do I amke the form? How do I get everything to work? All I want is typical mail me form, with name, address, email, phone and comments fields. All fields will be required except address and phone. What do I do.
What is your e-mail address? I'll send you a short example that works for me. You won't have to change the chmod settings if you use the built in FormMail.
Surbaugh
08-04-2002, 07:50 PM
Forbidden
You don't have permission to access /cgi-bin/FormMail.pl on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.26 Server at contact.surbaugh.com Port 80
what do I do the new formMail.pl thats above is transfered to host rocket and the page at http://contact.surbaugh.com is suppose to be edited for the new info, but I seem to still have problems. What is wrong.
-signed confused!
Surbaugh
08-04-2002, 10:12 PM
ok that problem is solved, now I can't get the emails sent with the form.
Surbaugh
08-06-2002, 01:29 AM
ok it doesn't appear to be some server problems, it has been well over 24 hours and the form redirects to the original page just fine, but it doesn't send the emails. Why won't it send the emails?? I have the link at http://www.surbaugh.com click on "contact" in the menu.
LasagnaSurfer
08-08-2002, 05:13 PM
you can't chmod with a windows server can you?
Stewart
08-08-2002, 07:09 PM
wtf?
there is a permission system but not really like chmods. to get to it, you need to right click the folder, click properties then click the "web sharing" tab where you are presented a load of settings.
LasagnaSurfer
08-08-2002, 07:37 PM
ok i'm a newbie... and most directions that require chmod (like for a blog or gbook) don't describe that process.
what does chmod even do?
and can i still use code say like written on perl 5 on a windows server?
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.