How do I send an email with HTML with an address the user inputs?

Posted by MeganSime on Stack Overflow See other posts from Stack Overflow or by MeganSime
Published on 2012-10-04T09:25:03Z Indexed on 2012/10/04 9:37 UTC
Read the original article Hit count: 219

Filed under:
|
|
|

I have an app i am designing and there is a page for emails. The user inputs their name, email address and message and then clicks 'submit'. this works, but i don't know how to make the user's input be on the email. this is the code so far;

<form id="contacts-form" action="mailto:[email protected]">
    <ul class = "rounded">
        <li style = "color: #FFFFFF">Full Name:<input type="text" placeholder = "J. Doe" name = "signature" id = 'signature' /></li>
        <li style = "color: #FFFFFF">E-mail:<input type="text" placeholder = "[email protected]" name = "address" id = 'address' /></li>
        <li style = "color: #FFFFFF">Message:<input type = "text" placeholder = "Message" name = "message" id = 'message' /></li>

        <a href="mailto:address?subject=subject&body=message" class="button">Submit</a>
    </ul>
</form>

does anyone know how to change the code to allow the user input to go onto the email? Thanks a lot in advance x

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html