Html Page To Send Email When Pressed Send Botton.

Discussion in 'HTML & Website Design' started by 4sydart, Feb 11, 2013.

  1. #1
    I was just wondering if its possible to make an HTML page.. which emails you all the info that is entered in a text box.[​IMG]



    <!DOCTYPE html>
    <html>
    <body>

    <h3>Send e-mail to :</h3>

    <form action="" method="post" enctype="text/plain">
    Name:<br>
    <input type="text" name="name" value="your name"><br>
    E-mail:<br>
    <input type="text" name="mail" value="your email"><br>
    Comment:<br>
    <input type="text" name="comment" value="your comment" size="50"><br><br>
    <input type="submit" value="Send">
    <input type="reset" value="Reset">
    </form>

    </body>
    </html>

    So, what I need is that.. whenever a person clicks on the Submit button..
    I should get an email.. without the other person required to sign in to
    their account or anything.

    Just all info mailed directly to me.


    I'm sorry i am very new to this.. any help would be appreciated
     
    4sydart, Feb 11, 2013 IP
  2. wiicker95

    wiicker95 Well-Known Member

    Messages:
    438
    Likes Received:
    37
    Best Answers:
    10
    Trophy Points:
    100
    #2
    You got that from w3schools, right? Unfortunately, it doesn't work. That will only redirect the user to his email client, with an unrelated title and/or message.
    You will find tons of working php forms online, just search.

    P.S. : I know these guys define web standards, but I wonder what makes that heading an h3. I know they are using that tranny nonsense known to some as HTML5, but still, it makes no sense.
     
    wiicker95, Feb 11, 2013 IP
  3. COBOLdinosaur

    COBOLdinosaur Active Member

    Messages:
    515
    Likes Received:
    123
    Best Answers:
    11
    Trophy Points:
    95
    #3
    If you don't want the user to have to use their own client, then you post the form and use a simple PHP mailer to send the information to you in an email. something like this stripped down to the bare essentials is what you need: http://coboldinosaur.com/pages/Simple_PHP_Mailer.html
     
    COBOLdinosaur, Feb 11, 2013 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    W3Schools doesn't define a blasted thing -- they are COMPLETELY unrelated to the W3C and are little more than nube predation -- LITERALLY preying on the ignorance of those just starting out by sharing the same first two letters and using their endless legacy weight and SEO asshattery to scam people into thinking their horrific web rot and dated practices show up at the top of Google.

    Which is part of why there's an intervention site telling people NOT to use them as an authority on, well.... ANYTHING.
    http://w3fools.com/

    -----------------------------------------------

    As to the OP's problem -- as others have said you have to handle this server side with a PHP, ASP or other from handling script. Sending it to 'mailto' is stupid and doesn't work in the age of so many people using webmail, and there's no other 'client-side' way of handling this.
     
    deathshadow, Feb 11, 2013 IP
  5. wiicker95

    wiicker95 Well-Known Member

    Messages:
    438
    Likes Received:
    37
    Best Answers:
    10
    Trophy Points:
    100
    #5
    And I actually thought they did! Not that I cared that much about them to begin with, but they are selling "certificates" and taking money from people! What a bunch of deceptive scumbags they are.
     
    wiicker95, Feb 11, 2013 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #6
    Again why my disgust to the point of nausea for the industry as a whole continues to plumb the depths of depravity.
     
    deathshadow, Feb 11, 2013 IP