How to send an email from a form in an HTML site?

0

I have a template of an HTML site that has an email form, how do I get the data filled in the form and send it to my email?

<h3>Email</h3>
<form method="post" action="#">
    <div class="row uniform">
        <div class="6u 12u(3)">
            <input type="text" Nome="Nome" id="Nome" value="" placeholder="Nome" />
        </div>
        <div class="6u 12u(3)">
            <input type="email" Nome="email" id="email" value="" placeholder="Email" />
        </div>
        <div class="6u 12u(3)">
            <input type="text" Nome="Assunto" id="Assunto" value="" placeholder="Assunto" />
        </div>
    </div>

    <div class="row uniform">

        <div class="6u 12u(2)">
            <input type="checkbox" id="human" Nome="human" checked>
            <label for="human">Sou humano</label>
        </div>
    </div>
    <div class="row uniform">
        <div class="12u">
            <textarea Nome="message" id="message" placeholder="Digite sua mensagem" rows="6"></textarea>
        </div>
    </div>
    <div class="row uniform">
        <div class="12u">
            <ul class="actions">
                <li><input type="submit" value="Enviar" /></li>
                <li><input type="reset" value="Limpar" class="alt" /></li>
            </ul>
        </div>
    </div>
</form>

    
asked by anonymous 08.04.2016 / 04:05

1 answer

3

Without using a server side language, this is the way it is:

<form method="post" action="mailto:[email protected]">

But this is a somewhat problematic solution, as it depends on whether the user has an email client configured correctly (only works for webmail under somewhat special conditions, not only if the browser is prepared for that).

With the support of a server side language, everything changes. Then you have to specify the language in question.


EDIT: searching better, seems duplicate this:

  

Sending Email with HTML5 Basics

If it's PHP, it's a duplicate of this:

  

How to send email with PHP?

    
08.04.2016 / 05:17