Cant recieve emails through html form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jasone
    New Member
    • Mar 2007
    • 66

    #1

    Cant recieve emails through html form

    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
  • booneyHill
    New Member
    • Sep 2007
    • 7

    #2
    I don't think you can use javascript to send emails. You can, however, use a server-side script.

    Comment

    • AricC
      Recognized Expert Top Contributor
      • Oct 2006
      • 1885

      #3
      Originally posted by jasone
      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.

      Comment

      • diane100
        New Member
        • Sep 2007
        • 6

        #4
        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

        Comment

        • jasone
          New Member
          • Mar 2007
          • 66

          #5
          hi,

          Thanks for the reply diane100, i will work through it a bit later today!

          Comment

          Working...