Current time: 04-24-2014, 12:46 PM Hello There, Guest! (LoginRegister)

Post Reply 
formail configuration not working, please help.
01-31-2012, 02:37 PM (This post was last modified: 01-31-2012 02:38 PM by thiggins.)
Post: #1
formail configuration not working, please help.
Hello all,
I recently had someone work up some web pages for a website I have, unfortunately they did not finish the web email form, I have been using the following to guide me *he with little knowledge), but so far I cannot get it to work:

http://formmail.dreamhost.com/

This is the code:

<div class="left">
<form action="#contact" id="contactform" name="contactform" method="POST">
<form action="http://formmail.dreamhost.com/cgi-bin/formmail.cgi" method="POST">
<p>
<label for="name" class="name">Name:<br>
</label>
<input style="opacity: 1;" name="name" id="name" class="text " type="text">
</p>
<p>
<label for="email" class="email">Email:<br>
</label>
<input style="opacity: 0.800351;" name="email" id="email" class="text " type="text">
</p>
<p>
<label for="message" class="message">Message:<br>
</label>
<textarea name="message" id="message" class="textarea "></textarea>
<br>
<input type=hidden name="recipient" value="bookings@domain.com">
<input name="submit" value="SEND" id="submit" class="button" type="submit">
</p>
<p class="loader">&nbsp;</p>
</form>
</div>


Obviously bookings@domain.com is replaced with the real domain name, that email is correctly set up in my web panel which forwards onto my regular email, I have sent a test email to it and it correctly forwards it, so I believe there is something wrong with the form, please help!!

regards
Tony
The first form action is deleted, I left that in to show what the original was like.
Find all posts by this user
Quote this message in a reply
01-31-2012, 04:24 PM (This post was last modified: 01-31-2012 04:26 PM by thiggins.)
Post: #2
RE: formail configuration not working, please help.
OK I think I got it working somewhat, here is the new code, I added a submit success page, not sure what else I did correctly:

<form action="http://formmail.dreamhost.com/cgi-bin/formmail.cgi" method="POST">
<p>
<input type=hidden name="recipient" value="bookings@mydomain.com">
<label for="name" class="name">Name:<br>
</label>
<input style="opacity: 1;" name="name" id="name" class="text " type="text">
</p>
<p>
<label for="email" class="email">Email:<br>
</label>
<input style="opacity: 0.800351;" name="email" id="email" class="text " type="text">
</p>
<p>
<label for="message" class="message">Message:<br>
</label>
<textarea name="message" id="message" class="textarea "></textarea>
<br>

<input name="submit" value="SEND" id="submit" class="button" type="submit">
</p>
<p class="loader">&nbsp;</p>
<input type=hidden name="redirect" value="http://www.mydomain.com/submitsuccess.html" target="self">
</form>

This is the email I get:

Below is the result of your feedback form. It was submitted by
(xxx@xxx.com) on Tuesday, January 31, 2012 at 15:20:11
---------------------------------------------------------------------
name: Joshua Test
message: Test message
submit: SEND
---------------------------------------------------------------------

I think thats great, only think would be nice to change is:

WWW Form Submission‏ - is the title of the email, any idea how I may change this?
and that was easy to figure out, woo!
<input type=hidden name="subject" value="Subject title">
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: