FormMail from 34SP

 
Post new topic   Reply to topic    34SP.com Forum Index // Scripting Support
View previous topic :: View next topic  
Author Message
imknight
Administrator
Administrator


Joined: 16 Mar 2001
Posts: 3627
Location: Stroud,Gloucestershire

PostPosted: Fri Sep 01, 2006 10:39 am    Post subject: FormMail from 34SP Reply with quote
With the introduction of our script installers the need for the global FormMail that we have used in the past for customers is going to be phased out.

The NMS FormMail is much more secure than the version of FormMail that we had available globally, with keypoints being not having to list your email address within the code, this stop spambots being able to pick up your email address from your contact form page.

We will be disabling the FormMail from October 1st, this gives people a month to install the newer version.

All mails sent via the current FormMail implementation will shortly have a header added linking to this post.

How do i convert my current form to use this new formmail?

1) First install the formmail from https://scripts.34sp.com this simply requests your ftp details, domain and the email address that you wish the form results to go to (To avoid external issues we strongly recommend the use of 34SP hosted email addresses).

Note: Reseller Account users please ensure that you have enabled cgi scripts in the hosting setup of the domain.

2) Use the test form installed at http://YOURDOMAIN/ContactMe.html and confirm that it is sending email to you correctly.

If it is not then drop us an email with details and we can look into this for you.


3) You need to make a few changes to your contact form,

First change :
Code:

<form action="http://www.support.34sp.com/cgi-bin/FormMail.cgi" method="post" enctype="x-www-form-encoded">


with simply:

Code:

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


and then change

Code:

<input type="hidden" name="recipient" value="YOUR EMAIL ADDRESS">


with:

Code:

<input type="hidden" name="recipient" value="contactme" />


As a general rule this is the only changes that will be needed on most users forms, if you wish to view more of the options available to use please click the "Browse Package" link at http://nms-cgi.sourceforge.net/formmail_compat-3.14c1/ and take a look at the README and EXAMPLES file.

Any questions regarding this please do let us know.
_________________
Ian
34SP.com
Easy script installers for a small number of popular scripts are now available at http://scripts.34sp.com
Used our script installers? Please post your site here

| Wordpress Hosting |
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
imknight
Administrator
Administrator


Joined: 16 Mar 2001
Posts: 3627
Location: Stroud,Gloucestershire

PostPosted: Sun Sep 03, 2006 8:01 am    Post subject: Reply with quote
We have had a few people enquire if the same formmail installation can be used to send different forms to different email addresses. This is easily done.

With an ftp client (please do not use filemanger in siteadmin), login to your webspace.
Its advisable to check that your ftp client is set to handle .pl/.cgi files in ASCII mode before going any further

Go into the cgi-bin folder and download the "ContactMe.pl" file to your computer.

Using a programing text editor (recommend SciTE - http://scintilla.sourceforge.net/SciTEDownload.html - the 440K download is great)

Open this file and look for the line that starts (line 50 if you have line numbers):

%recipient_alias

Now simply add all the possible uses to this eg:

Code:

%recipient_alias = ('contactme'=>'email1@address1.com','sales'=>'sales@domain1.com','info'=>'fred@domain2.com');


Then upload again - making sure that it is uploaded in ASCII. Once this has been uploaded simply alter the 'recipient' in your html code to be one of the new aliases (sales,info,support etc).

A number of people may want the results on a form to go to multiple email addresses, this is easily achievalble similarly with:

Code:

%recipient_alias = ('contactme'=>'email1@address1.com,sales@domain1.com,fred@domain2.com');


Although personally i would recommend the creation of a "mailgroup" within siteadmin and then add the additional mailnames to this, this would then allow easy modification without having to actually edit the script.
_________________
Ian
34SP.com
Easy script installers for a small number of popular scripts are now available at http://scripts.34sp.com
Used our script installers? Please post your site here

| Wordpress Hosting |
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
pacific8
34SP Newbie
34SP Newbie


Joined: 20 Aug 2006
Posts: 10

PostPosted: Sun Mar 04, 2007 8:36 pm    Post subject: Reply with quote
I've been trying to set up a thankyou page so that once the form has been submitted the user sees a thankyou page or takes them back to the home page without seeing the formail page.

I'm using:

<input type="hidden" name="return_link_url"
value="/home.html" />


but the original formmail page keeps showing up.

http://mydurham.co.uk/formmail/ContactMe.html

Thanks in advance.
Back to top
View user's profile Send private message
imknight
Administrator
Administrator


Joined: 16 Mar 2001
Posts: 3627
Location: Stroud,Gloucestershire

PostPosted: Mon Mar 05, 2007 8:27 am    Post subject: Reply with quote
You have added the return_link_url after the submit button, please add it to the top of the form instead. Also maybe best to use the full http path to the page rather than just /home.html
_________________
Ian
34SP.com
Easy script installers for a small number of popular scripts are now available at http://scripts.34sp.com
Used our script installers? Please post your site here

| Wordpress Hosting |
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
RMLaundon
34SP Newbie
34SP Newbie


Joined: 30 Apr 2003
Posts: 30
Location: Birmingham, UK

PostPosted: Sun Apr 22, 2007 11:02 am    Post subject: Reply with quote
I would like to have one form on screen with a drop down box of recipients for the user to choose from. How would this be implmented using this script?
Back to top
View user's profile Send private message Visit poster's website
imknight
Administrator
Administrator


Joined: 16 Mar 2001
Posts: 3627
Location: Stroud,Gloucestershire

PostPosted: Sun Apr 22, 2007 9:40 pm    Post subject: Reply with quote
You would need to setup the recipient aliases as in my first example:

Code:

%recipient_alias = ('contactme'=>'email1@address1.com','sales'=>'sales@domain1.com','info'=>'fred@domain2.com');


Then list the relevant entries in a normal <select> option group.
_________________
Ian
34SP.com
Easy script installers for a small number of popular scripts are now available at http://scripts.34sp.com
Used our script installers? Please post your site here

| Wordpress Hosting |
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
cerij
34SP Newbie
34SP Newbie


Joined: 06 Mar 2003
Posts: 55
Location: Wales

PostPosted: Fri Aug 31, 2007 7:08 pm    Post subject: Reply with quote
pacific8 wrote:
I've been trying to set up a thankyou page so that once the form has been submitted the user sees a thankyou page or takes them back to the home page without seeing the formail page.

I'm using:

<input type="hidden" name="return_link_url"
value="/home.html" />


but the original formmail page keeps showing up.

http://mydurham.co.uk/formmail/ContactMe.html

Thanks in advance.


I am also trying to do this using the form at http://www.d2-accounting.co.uk/contact.html but it still comes up with the default confirm page. Have I missed something? Thanks.

Username for the site is d2accounting password is 6cwrt
Back to top
View user's profile Send private message
Rocky
Super Member
Super Member


Joined: 25 Sep 2001
Posts: 1160
Location: Hertfordshire

PostPosted: Fri Aug 31, 2007 10:29 pm    Post subject: Reply with quote
You must have done something since your post cos it worked fine for me

Your thankyou page needs altering too

Change your username and password ASAP and don't post them again.
_________________
Main Site | Football
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
cerij
34SP Newbie
34SP Newbie


Joined: 06 Mar 2003
Posts: 55
Location: Wales

PostPosted: Fri Aug 31, 2007 11:34 pm    Post subject: Reply with quote
Good point, but there's nothing in there worth stealing!

But I just tried it again and all I got was the horrible unformatted confirmation page!

Thanks anyway...
Back to top
View user's profile Send private message
lukemersh
34SP Newbie
34SP Newbie


Joined: 10 Apr 2008
Posts: 2

PostPosted: Tue Feb 07, 2012 4:32 pm    Post subject: linking html forms created in dreamweaver to formmail Reply with quote
I was wondering if anybody could help me, I have created a website with 2 forms that i would like the info emailed to me , I have downloaded formmail.pl and read instructions but dont really understand how to configure it completely.

can somebody please help me.
Back to top
View user's profile Send private message Visit poster's website
dmartin
34SP Newbie
34SP Newbie


Joined: 23 Mar 2001
Posts: 6

PostPosted: Sun Dec 08, 2013 11:49 pm    Post subject: Reply with quote
I just installed this script, and it's not working for me - says "Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request. - Please contact the server administrator, root@localhost 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."
Back to top
View user's profile Send private message
Post new topic   Reply to topic    34SP.com Forum Index // Scripting Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Powered by phpBB © 2001, 2002 phpBB Group