PDA

View Full Version : Email link in forms


Matelot
06-08-2009, 12:34 PM
Hello all,
Once again I thank you for your help and advice.
I've used the first code that was posted. When I preview it in the browser it looks good but nothing arrives in my emails. I wonder if I must now say something to my web host One.com about php? I've not added any links to other pages yet as I don't want people trying to send emails to me that don't go anywhere. So although the pages have been "put" you can't find them.

Once more.
Thanks
http://www.dreamweaverclub.com/forum/images/statusicon/user_offline.gif http://www.dreamweaverclub.com/forum/images/buttons/quote.gif (http://www.dreamweaverclub.com/forum/newreply.php?do=newreply&p=160746)

Corrosive
06-08-2009, 01:08 PM
Hello all,
Once again I thank you for your help and advice.
I've used the first code that was posted. When I preview it in the browser it looks good but nothing arrives in my emails. I wonder if I must now say something to my web host One.com about php? I've not added any links to other pages yet as I don't want people trying to send emails to me that don't go anywhere. So although the pages have been "put" you can't find them.

Once more.
Thanks
http://www.dreamweaverclub.com/forum/images/statusicon/user_offline.gif http://www.dreamweaverclub.com/forum/images/buttons/quote.gif (http://www.dreamweaverclub.com/forum/newreply.php?do=newreply&p=160746)

I've just had a look at one.com website and all of their packages have support for PHP5. You might need to visit your control panel/customer area and request that PHP is activated so I think that would be a good place to start.

If they say that everything is working at their end then come back and we'll take a look at your mail form.

Matelot
06-08-2009, 02:35 PM
Here is the conversation I have just had:



file:///C:/DOKUME%7E1/JOHNBO%7E1/LOKALE%7E1/Temp/msohtml1/01/clip_image001.gifWelcome to the One.com chat support. We are doing our best to answer your queries soon. We kindly ask for your understanding that our answers may be delayed during busy periods.
file:///C:/DOKUME%7E1/JOHNBO%7E1/LOKALE%7E1/Temp/msohtml1/01/clip_image001.gifYou are now chatting with 'Jasmin'
Jasmin: Thank you for using One.com 24/7 Interactive Online Support. My name is Jasmin. How may I assist you?
you: Hello, I have created a contact form for my website using a dynamic page in Dreamweaver MX. All looks good but when I test it in my browser I get no email back. Do I need to do something with yourselves and PHP5?
Jasmin: Hi. Are you using a formmail script for your webpage?
you: Yes Jasmin, it is a script that I got from the Dreamweaver forum.
Jasmin: Okay. For Formmail to work, you need to use One.com's own formmail script "/cgi-bin/FormMail.pl"
you: Where do I find that?
Jasmin: It is a hidden file.
Jasmin: You need to direct your script to use this predefined script for formmail to work.
you: I can't use it then.
Jasmin: for example: <form method="post" action="http://www.domain.com/cgi-bin/FormMail.pl (javascript:void(0);) ">
you: Is "http:77www.domain.com/" MY domain?
Jasmin: Yes.
you: Sorry - should read htto://www.domain.com/"
you: I'll get it right one day.
Jasmin: Okay.
Jasmin: Is there anything else I could assist you with?
you: I don't see where the email address is.
Jasmin: What do you mean with that please?
you: To which email address will my messages go - my private one or the one I associate with One.com. I have tried to set up that address but have not been able to do so.
Jasmin: It depends to which email address you registered as recipient for your formmail.
you: When I first registered the web site the technical information I was supplied with was as follows -
you: E-MAIL:
you: IMAP server imap.touring-berlin.de
you: POP3 server: pop.touring-berlin.de
you: SMTP server: customer-smtp.one.com
you: Webmail:
you: later I was given http://www.one.com as a webmail address. I have not been able to set-up this as an Email address.
Jasmin: YOu mean you want to create an email account for your domain?
you: If that is what I must do to receive messages from the contact form I have created then yes.
Jasmin: To create a new e-mail account for your domain, kindly perform as follows:
Jasmin: 1. Login to Control Panel.
Jasmin: 2. Click to "Mail Administration".
Jasmin: 3. Click to "New account".
Jasmin: 4. Enter a new e-mail address of your choice and a password for the e-mail account.
Jasmin: 5. Click "Save".
you: OK I will paste and copy this conversation into "Word" and see how I manage. Thank you.




I'm staggered by my own ignorance!!! Where do I put this code?

Corrosive
06-08-2009, 02:43 PM
Hey, at least they have customer services! I have been through hosts who don't! If what she is saying is true then you are limited to using their own CGI script for form 2 mail. I find this surprising when they clearly offer PHP5 so you'd have thought that you are free to run any PHP you feel like/want to. If what they provide is satisfactory for your needs then use it.

Hosts will never support scripts downloaded or created from outside sources. It is not worth their trouble if it all goes wrong!

To use their script it looks like you need to have this at the start of your form, i.e. the opening form tag.

<form method="post" action="http://www.domain.com/cgi-bin/FormMail.pl ">
The rest of your form
</form>

Let us know how you get on with the in-house form.

Matelot
06-08-2009, 02:57 PM
I don't understand where to put your code. The address of the page is: http://www.touring-berlin.de/Contact form.htm I thought I knew a little bit about html but obviously not enough. Thanks

Corrosive
06-08-2009, 05:14 PM
I don't understand where to put your code. The address of the page is: http://www.touring-berlin.de/Contact form.htm I thought I knew a little bit about html but obviously not enough. Thanks

I'm getting a 'doesn't exist' message from that page. Also, I have explained where to put the code in my post above. Not sure I could be much clearer.

Matelot
06-09-2009, 12:51 PM
I've found where I must place the code - thanks. We'll see how I get on. The contact form is there. You have to paste the whole address into the address bar. If you just click on the link it does come up with a non existent page message.
Thanks

Corrosive
06-09-2009, 04:46 PM
I've found where I must place the code - thanks. We'll see how I get on. The contact form is there. You have to paste the whole address into the address bar. If you just click on the link it does come up with a non existent page message.
Thanks

Ah, I see the problem with the link. You really should avoid putting spaces in your page names. Contact form.html is bad practice. Use an underscore or dash to break words up. I tend to use an underscore so I'd have contact_form.html

OK, where they gave you this as an example...

<form method="post" action="http://www.domain.com/cgi-bin/FormMail.pl ">

They meant for you to point it at the cgi bin in YOUR domain. It should look something like...

<form method="post" action="http://www.touring-berlin.de/cgi-bin/FormMail.pl ">

You'll have no luck pointing at the first link!!

TARCON
06-09-2009, 07:42 PM
And I dont think it will work if you just preview the webpage in your browser. You will need to upload it onto the server and then try. And if it doesn't work, then you need to work on something....

Matelot
06-09-2009, 08:06 PM
I've followed your advice and I've changed all the spaces in page names to underscore. I'll remember in future. It explains why when I sometimes submit to search engines I get a message that the page cannot be found.

I've replaced the code with the one you have suggested but when I submit the form in the browser view I get "Error: Bad/No Recipient" Does this mean that I have to create this "cgi_bin/FormMail.pl" thingy? If so how? Is it supposed to be another dynamic page? Or is it something I should take up with One.Com?

BTW Did you know that you are a "Lite Chicken". It's American military slang for a Lt. Colonel. It comes from the badge of rank.

Matelot
06-09-2009, 08:13 PM
I've followed Tarcon's advice but get the same result.

TARCON
06-09-2009, 08:17 PM
You have this in your php file?'

$mailto = 'YOUR EMAIL HERE' ; ?

Corrosive
06-09-2009, 08:55 PM
BTW Did you know that you are a "Lite Chicken". It's American military slang for a Lt. Colonel. It comes from the badge of rank.

That's the second thing I have learnt today...I am on a roll :)

If you have followed one.com's instructions (with some help) and it still isn't working then take it up with them. You might want to look at the remote view of your site and check the cgi bin folder. Is there anything in there??

Matelot
06-11-2009, 04:22 PM
PROGRESS! I've got a bit of new code from One.com and have amended the site accordingly. I get my test Emails OK but the re-direct to the Thank you page still isn't functioning. I get a message that the page isn't on the server. I have to keep playing with it to make sure all the file names etc match up. Lets go back to the days of the quill pen!

Corrosive
06-11-2009, 04:29 PM
Lets go back to the days of the quill pen!

Ha, ha and parchment! At least you are getting somewhere now.

MagicPower
06-11-2009, 04:31 PM
check the link in the code and upload the thank you message page on to ur hosting

Matelot
06-12-2009, 03:23 PM
Whoppee - it works!

After a lot of help from yourselves and One.com I'm finally there. I had to delete my thank you page and create a new one, paying particular attention to the advice given by Corrosive and making sure that the file names all match. It's amazing the difference that one character will make.

I use Firefox and Yahoo also twin search and SEOexplorer