Does anyone know of a way to post mail using html?

Discussion in 'Programming' started by fiveniner, May 10, 2006.

  1. #1
    I have a form which I would like to post the data and send it as an email.
    Is it possible to post that email without Asp or Php or CGI?

    Thanks just like to know

    Thanks alot.
     
    fiveniner, May 10, 2006 IP
  2. DrQuincy

    DrQuincy Peon

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Emails are sent through at the server's end. Things like ASP and PHP send the mail through the server and then output the HTML to the client's broswer. The only way to send mail using HTML is on the client-side using mailto: which send mail through the client's email account (if they have one set up).
     
    DrQuincy, May 10, 2006 IP
  3. fiveniner

    fiveniner Active Member

    Messages:
    350
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #3
    oh ok thanks dude :)
     
    fiveniner, May 10, 2006 IP
  4. danielbruzual

    danielbruzual Active Member

    Messages:
    906
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    70
    #4
    you can use a service that allows you to post the information to an external server and from there they get processed and sent to your email.
    I think http://allforms.mailjol.net/ provides that service for free.

    Daniel
     
    danielbruzual, May 14, 2006 IP
  5. fiveniner

    fiveniner Active Member

    Messages:
    350
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #5
    cool thanks, I will take alook at it :)
     
    fiveniner, May 14, 2006 IP
  6. rickvidallon

    rickvidallon Peon

    Messages:
    147
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    A few years back I used a client-side Java Script to do this. (Definitely not the best way to do this, but it worked).
    The form is still live here if you want to snag the code. http://www.tfcrecycling.com/wasteaudit.htm
    Cheers!
     
    rickvidallon, May 15, 2006 IP
  7. Lisper

    Lisper Guest

    Messages:
    86
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can actually send an email from pure html like this:

    <form method="post" action="mailto:email@example.com" enctype="text/plain">
    put fields you want here
    </form>

    The page mentioned by rickvidallon uses this html too, along with some javascript for validation etc.

    While it looks pretty appealing at first sight it has many disadvantages:

    • The visitor needs to have an email program they actually have an active email account setup in.
    • The visitor gets a big warning message about the fact that the form will be submitted by email, their email address will be revealed to the receiver etc.
    • Your email address will be visible to anyone visiting the site, including spambots.

    And there are sure to be more disadvantages. So I'd suggest to use a serverside form, or if you can't do that now to get a better host first :)
     
    Lisper, May 18, 2006 IP
  8. fiveniner

    fiveniner Active Member

    Messages:
    350
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #8

    I tried this method before but I got a warning from my browser and I decided it would give a bad signal to the users. So I decided to scrap it, anyhow I decided to use server side methods for now.

    Thanks for the help guys.
     
    fiveniner, May 21, 2006 IP
  9. fiveniner

    fiveniner Active Member

    Messages:
    350
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #9
    Thanks for the help, learnt something new :)
     
    fiveniner, May 21, 2006 IP