Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    May 2005
    Posts
    220
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Form info to email-address?

    Is it possible using javascript to have a form with a submit button and have the information typed in the form be sent to an email address using only client-side?

    If so, could someone give me an example of this code?

    Thank you

  • #2
    New Coder
    Join Date
    May 2005
    Location
    Alabama
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nop, not possible, tried it before. You gotta have a CGI file, or a PHP page or something like that. You can find form-to-mail servers on the web that will do it for free and give you all the instructions. That sucks doesn't it?

  • #3
    Regular Coder
    Join Date
    May 2005
    Posts
    220
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Aaah man! That does suck! It looks much cleaner to type in your info and have it sent to your email address then trying to have a mailto command pop-up the new email window and typing in a message.

    Is there really no other way!?!?

  • #4
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Really. Though, you can specify what the message body is to entail in the mailto link, as well as the subject, so you could have them fill in the form and then dynamically fill in the body portion of the mailto link, which would be the submit button. Not a good way to go about it though, as it will do nothing for someone without a default mail client.

    Basscyst
    Helping to build a bigger box. - Adam Matthews

  • #5
    New Coder
    Join Date
    May 2005
    Location
    Alabama
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yeah there's another way, as I mentioned there are websites that offer a "form-to-mail" service that's most of the time for free. They give you all the instructions on how to set it up on your webpage. You gotta search a website that gives you that service though.

  • #6
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    And that service is just using a server side language to process the mail, so it really isn't another way, it's just someone doing it for you.

    Basscyst
    Helping to build a bigger box. - Adam Matthews

  • #7
    Regular Coder
    Join Date
    May 2005
    Posts
    220
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Actually,

    I have been typing what I want in the subject on body of the email. I just wish that it could be done by a form on client-side. I just looks slick.

    Oh well,
    Thanks for the input

    -vapor


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •