SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    Original Gangster silver trophy Thing's Avatar
    Join Date
    Oct 2000
    Location
    Philadelphia, PA
    Posts
    4,708
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    send9ing a form via email

    I am trying to send the contents of my form through email. This is the code I was using:

    <form method="post" action="mailto:whoever@hotmail.com" enctype="text/plain">
    blah
    blah
    blah
    </form>

    This just opens up a blank email with the email address in it. How can i get it to automatically send the form with the entered info? Thanks

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Using that method you can't. You are telling the users computer to open an email with the "to" address as the one that is specified.

    You would have to use a CGI script to accomplish that. Matt Wrights "FormMail" is a very popular script that would work for you. Providing that you have access to the cgi-bin on your server.

    Yo could also look at www.hotscripts.com for a script. Check under "Form Processing".
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  3. #3
    BoOm-Rocka! Smarky's Avatar
    Join Date
    Jun 2000
    Location
    England
    Posts
    1,319
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you don't happen to have access to a cgi-bin then you can get a form processor from http://www.revamp.net/ that is hosted on there servers . One thing to note is a lot of free services have adverts, this one doesn't
    Garlic bread, I've tasted it, it's the future

  4. #4
    SitePoint Zealot
    Join Date
    Apr 2001
    Location
    Toronto, Ontario, Canada, Earth
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by creole
    Using that method you can't.
    actually, you can indeed use that method to send a form via e-mail.

    the problem is probably occurring because you're using the post method to submit the form. while this works in most browsers, it causes a blank e-mail window to open in some browsers, like in your case. try using the 'get' method to submit the form.

    i must however strongly advise against using this method because it relies on a mail program to be properly configured on the client-side. a server-side solution, as others have mentioned, would be more ideal.

    Jason Weinstein
    http://www.MaximumEdge.com/

  5. #5
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ah...my bad then...
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  6. #6
    BoOm-Rocka! Smarky's Avatar
    Join Date
    Jun 2000
    Location
    England
    Posts
    1,319
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by maximumedge
    [B]
    i must however strongly advise against using this method because it relies on a mail program to be properly configured on the client-side. a server-side solution, as others have mentioned, would be more ideal.
    I agree, can't forget that a lot of users don't even use pop mail and a Mail client and use web mail instead. This is stoping these users using the form. I can't tell you how annoying that was to me when i only had access to webmail.
    Garlic bread, I've tasted it, it's the future


Bookmarks

Posting Permissions

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