Will an exported contact form work correctly?

If I export my site and host it on my own servers, are there changes that I’ll need to make in order to have my contact form submit straight to my email address instead of going through webflow? If so, what needs to be changed?

Hi, check out this article, then let us know if you have other questions:

Cheers

Thanks Dave! Here’s what my host is saying I should do:

http://kb.site5.com/others/how-to-create-a-contact-form-using-formmail/

If I do it this way, I upload this file to cgi-bin on my server, then put this in the “action” field in webflow - /cgi-bin/FormMail.pl”? Do I need to paste their form html in or can I just use webflow’s stuff for that?

Last question (I think). Does this .pl file need to live in cgi-bin, or can it just reside anywhere on my server as long as I point to it correctly in the “action” field?

Thanks so much for all of your help this week Dave!

@Chris_Scott according to your link kb.site5… and regarding to 2 options you may use for your contact form solution, there are few things to notes there.

1st. you are right. you need to upload FormMail.pl (after you modify it as you need) and set action field in webflow to /cgi-bin/FormMail.pl, AND set Method to Post

2nd. i believe any form elements’ value in your form will be sent regardless their name unless it is noted, so yes you can use webflow’s form

3rd. you must have this extra fields (that you need to add manually after export):

<input type=hidden name=”recipient” value=”user@yourdomain.com” />
<input type=hidden name=”redirect” value=”http://yourdomain.com/thankyou.html“/>

and make your own thankyou.html

4th. for safety you better put that .pl file in cgi-bin but i found one hosting server allow to put it anywhere Perl CGI Tutorial: First lesson on Perl programming

Cheers

2 Likes