PDA

View Full Version : Formmail - anybody use it?


The Villan
21/11/2007, 15:21
Hi
I want to have people e-mail me from my website to order tickets and thought I would try the free version of Funmail.

I am using Frontpage.

I downloaded the files and copied the info into my website file and uploaded but it didn't work.

Does anybody already have experience in this field who can help me get things set up properly.

Cheers
Les Worrall

The Villan
21/11/2007, 22:15
What I actually want to do, is create a form for use online, which is in the format of an e-mail.
So all they have to do, is click on the form link and it pops up as an e-mail, they then answer the questions and then send it to me.

Maybe there is a a better product that does that.

Gargoyle
21/11/2007, 22:36
Hang on, I'm a little confused now as to what you want to do.

Do you want a web page form they complete, then they submit it and the webserver sends it too you. This is the nomral way to do this.

Or you want their email client to open to send an email.

I don't think there is a way to open an email with a form to complete which they email in. I've certainly not come across it

The Villan
21/11/2007, 22:43
>>Do you want a web page form they complete, then they submit it and the webserver sends it too you. This is the nomral way to do this.<<

Thats it Gargoyle. :-)

Gargoyle
22/11/2007, 10:37
Well, Formmail will do what you want - that's what it's designed for. It's Perl script.

'not working' could encompass many things. Most likely there is a misconfiguration somewhere, such as the script not in the right place, or the form page not referring to the script in the right location, or not having the right Sendmail location set in the script etc. I'd suggest reading through all the info on it on MSA and rechecking everything

Have you a url for the form?

As an alternative, you could try the Form generator at Site Wizard (http://www.thesitewizard.com/wizards/feedbackform.shtml) to create PHP feedback form.

This doesn't require any configuration so ought to be a bit more foolproof.

It is just a basic feedback form, but it wouldn't be hard to modify for a more complicated form.

It creates a PHP script which you upload to the server, and the HTML for the form part of the webpage, that you paste into the HTML code for your feedback page

The Villan
22/11/2007, 11:03
I used the wizard to set things up.

I havent put any coding in the head section on the home page. However I havent got the faintest what to put in there
This is what the head coding looks like at the moment.

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-gb">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="Faldingworth Live" content="&lt;meta name=&quot;description&quot; content=&quot;Faldingworth Live, folk music, Faldingworth, Faldingworth Village Hall, alternate Friday evenings, concert style, Diary.&quot;&gt;">
<meta name="Faldingworth Live" content="&lt;meta name=&quot;keywords&quot; content=&quot;music, artists, performers, free for all, banner exchange, search engines, promote secrets, promote, Promote, PROMOTE, ranking&quot;&gt;">
<meta name="Faldingworth Live" content="&lt;meta name=&quot;revisit-after&quot; content=&quot;15 days&quot;&gt;">
<meta name="Faldingworth Live" content="&lt;meta name=&quot;ROBOTS&quot; content=&quot;INDEX, ALL&quot;&gt;">
<meta name="Faldingworth Live" content="&lt;meta name=&quot;ROBOTS&quot; content=&quot;INDEX, FOLLOW&quot;&gt;">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Faldingworth Memorial Hall </title>
<base target="_self">

<meta name="Microsoft Theme" content="expeditn 111">
<meta name="Microsoft Border" content="t, default">
</head>

I managed to get the temporary form uploaded and can fill the form in, but have all the coding showing as well. So I have a problem knowing exactly what to put in that page.

I was unable to trigger an e-mail to myself. So yes there is something wrong there.

Is it possible that you could guide me on the head coding first?

Gargoyle
22/11/2007, 12:00
Ok, umm.

1. When you say 'I used the wizards to set things up' - which wizard where?

2. have you got a url for the form so we can see what is happening, or can you post the code you are using, or a link to a copy of the code somewhere?

How did we get on the Head section, what is the problem? there isn't much that needs to be in a the HTML Head section and I don't see how it relates to the form questions? using Frontpage to develop the pages you shouldn't really need to worry about what is in the Head.

A bit about the HTML Header

The Villan
22/11/2007, 13:07
Ok I thought I might need to have something in the head section, but obviously not.

When I dowloaded Funmail, I used their wizard to set my e-mail contact up.

I unzipped the files once downloaded.

I then copied the files onto a new page in Frontpage and it seemed to transfer all the coding which is pages long.

I took the page off my website as it wasn't working properly, but can easily put that on and you could see how it looks when loaded.

I could also copy all of that coding etc into say a word document and e-mail that to you, if that is OK. You would of course need top PM me with you e-mail address.

Can you confirm if that is OK. Incidentally I do appreciate your help in this very much.

I am dipping in and out today on this forum, so apologies if I don't respond immediately.

Les

Gargoyle
22/11/2007, 13:41
Ok I thought I might need to have something in the head section, but obviously not.

When I dowloaded Funmail, I used their wizard to set my e-mail contact up.

I unzipped the files once downloaded.

I then copied the files onto a new page in Frontpage and it seemed to transfer all the coding which is pages long.




Before there is more confusion ;) - do you mean Funmail or Formmail (http://www.scriptarchive.com/formmail.html) (as you have as the thread subject) - I thought you meant Formmail, but talk of wizards, pasting code etc. makes me think you don't.

Have you got a link for what you are using? a quick google didn't turn up a likely candidate and i've never heard of it.

Don't worry, I shouldn't really be here - I'm just avoiding rather more boring tasks.... :)

Putting the page up so we can see it might be useful.

The Villan
22/11/2007, 13:57
Its Formmail. Sorry doing too many things and getting confused. I think I am the statue today :-)

http://tectite.com/

This is what you see on my website

http://www.faldingworthlive.co.uk/e-mail_booking.htm

The Villan
22/11/2007, 15:19
E-Mail sent

corris
22/11/2007, 16:45
Hi Villan

I know Gargoyle is on the case .... but, as word has it "Frontpage is known to corrupt PHP code".

Just so's you're aware...............................


Can you try creating a test form using an alternative to frontpage just to try and knock that one on the head?


Cheers
corris

The Villan
22/11/2007, 18:56
Hi Corris
I have the form up, but not working properly. I think my e-mail or domain is wrong. I was aware of the possible corruption. Frontpage is all I have and am not experienced enough to use anything else. I let Frontpage do the donkey work and then look at the coding and make necessary changes

I posted all the help text which was pages and pages Gargoyle, and am currently looking at it and taking out what I am sure is just etxt. It will take me a bit of time.

The Villan
22/11/2007, 18:57
I almost damaged my screen trying to swat you Avator Corris :-)

Gargoyle
22/11/2007, 19:03
Ok, I've had a look at the form page on your site, and had a look at the tectite formmail script that I got from their wizard as well., and I can see a couple of problems.

1.. This is the biggie.

You should have received 2 files + readme from Tectite

a php file (formmail.php is the default name) and a html file (e-mail_booking.htm in this case)

you appear to have copied the content of the formmail.php file (unless you chose another name for it) into the booking into your html file (e-mail_booking.htm). you don't do this with it. (this is why you can see all that PHP code - it was handy though as I could see what it was :) )

You should copy the formmail.php file up to your webspace as well, not copy the contents into the html file. You can put the php file where ever you want in your webspace, but the location should match that in the e-mail_booking.htm file

In this line :

<form method="post" action="http://www.faldingworthlive.co.ukformmail.php" name="SampleForm">

This is the key problem, won't work at all with out the files in the right place :)
.
2. There seems to be some errors in the configuration

in the php file, in the configuration section in this line:

$TARGET_EMAIL = array("^emailname@domain\.co\.uk$");

According to the Formmail documentation this address should match that in the html file in this line:

<input type="hidden" name="recipients" value="email_address_here" />

Yours doesn't. Though I think the wizard isn't very clear on this and it's easy to make a mistake (why it asks for another address when it already has what it needs is another question.... ) Use the same email address whenever it asks for one and I guess it should be ok.

(Note, real email addresses removed, and if where you see capital letters in the middle of the email address, they were inserted by the wizard to obfuscate the email address from web bots (they are removed by the PHP script)

Either edit the files with a text editor as necessary, or redo the wizard again and use those files.

I think that's it, but not entirely sure I've got everything - have a go and see how you do.

HTH

The Villan
22/11/2007, 19:27
Thanks very much Gargoyle.
I will give it a go and get back when I cock it up again. :D:D

Les

Gargoyle
22/11/2007, 19:41
I will give it a go and get back when I cock it up again. :D:D


That's what i like, the positive approach :)

The Villan
22/11/2007, 19:54
LOL

OK I have done what you said and uploaded. Bear in mind I still have to go and look at te e-mail side.

It looks OK and I submitted knowing that an error should occur.

An error occurred while processing the form .

Our staff have been alerted to the error .
We apologize for any inconvenience this error may have caused.

Your form submission was processed by (8.03), available from www.tectite.com.

I will now have a look at the e-mail side.

The Villan
22/11/2007, 20:59
Sent e-mail Gargoyle.
Les

corris
22/11/2007, 23:01
I almost damaged my screen trying to swat you Avator Corris :-)

Lol

Glad your screen still OK ..... Yep, bugs me as well :D



Is your formmail working now do I gather??? Lets hope



Cheers
corris

The Villan
22/11/2007, 23:07
I would like to thank all who have tried to help me.

Very special thanks to gargoyle who so patiently stayed with me until I got it working. Top Gun there Gargoyle. I am very pleased to say the least.

Is there any way this thread can be marked as solved and gargoyle's power increased?

Time for a drink :-)

Cheers
Les

The Villan
22/11/2007, 23:09
I now feel like I am the pigeon LOL

Watch out Corris as a pigeon I really love eating insects. :-)

Ircsum
23/11/2007, 06:22
Click on the 'scales' icon (top right of every post, beside the post #) on one of Gargoyle's posts. It doesn't actually increase a member's rep power but it's logged in his CP under 'Latest Reputation Received'.

Ircsum.

The Villan
23/11/2007, 07:38
Thanks Ircsum. Done :-)