471,599 Members | 977 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,599 software developers and data experts.

Cant recieve emails through html form

66
Hi,

I may be totaly wrong with this one but im sure in the past i have created a web form, where when submit button is clicked, it send the form details to me designated email account.

At the moment i have a problem as when the submit button is being clicked it just loads up ms outlook on my pc....

the details of my site / particular are shown below:

Web Address: http://www.flowertime.org.uk/wedding_enquiry.html

If you are to busy to view the page source etc, would be very great full if you could post an example of a working form for this problem.

Many Thanks

Jason
Sep 21 '07 #1
4 1200
I don't think you can use javascript to send emails. You can, however, use a server-side script.
Sep 21 '07 #2
AricC
1,892 Expert 1GB
Hi,

I may be totaly wrong with this one but im sure in the past i have created a web form, where when submit button is clicked, it send the form details to me designated email account.

At the moment i have a problem as when the submit button is being clicked it just loads up ms outlook on my pc....

the details of my site / particular are shown below:

Web Address: http://www.flowertime.org.uk/wedding_enquiry.html

If you are to busy to view the page source etc, would be very great full if you could post an example of a working form for this problem.

Many Thanks

Jason
The MS Outlook thing is because you use mailto in your anchor you need to create a form and the action of the form needs to do the email work for you on the server.
Sep 22 '07 #3
Hi

I use a simple Perl Formmail script to process online forms to my email address

You can find the script here

The HTML should look something like this

[HTML] <FORM METHOD="POST" ACTION="/cgi-bin/formmail.pl">[/HTML] (this is the path to where the formmail script is located)
[HTML]<INPUT TYPE="hidden" NAME="recipient" VALUE="address" >[/HTML]
(replace address with you email)
[HTML]<INPUT TYPE="hidden" NAME="redirect" VALUE="address" >[/HTML]
(replace address with the url of the page to redirect to)

On the actual script you will need to edit your IP address, domain name and path to send mail on your server (something like /usr/sbin/sendmail) check with you hosting company if you are not sure

I run the script from the CGI directory and persmissions should be set at 755

You will find detailed instructions in the readme file

Regards
Diane
Sep 23 '07 #4
jasone
66
hi,

Thanks for the reply diane100, i will work through it a bit later today!
Sep 24 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Me | last post: by
1 post views Thread by tconti | last post: by
3 posts views Thread by Steve Thurston | last post: by
1 post views Thread by =?Utf-8?B?Sm9obiBXYWxrZXI=?= | last post: by
2 posts views Thread by lstanikmas | last post: by
1 post views Thread by Lelu | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.