简体   繁体   中英

Making an Email Form Send Email

I have the following code for an email form from an HTML template. I'd like to make it send email, as the moment I think it doesn't and I need to add some javascript to process the form. Any tips on how to do that for this form?

Thank you!

<!-- Email -->
<article id="email" class="panel">
    <header>

<h2>Email Me</h2>

    </header>
    <form action="#" method="post">
        <div class="5grid">
            <div class="row">
                <div class="6u">
                    <input type="text" class="text" name="name" placeholder="Name" />
                </div>
                <div class="6u">
                    <input type="text" class="text" name="email" placeholder="Email" />
                </div>
            </div>
            <div class="row">
                <div class="12u">
                    <input type="text" class="text" name="subject" placeholder="Subject" />
                </div>
            </div>
            <div class="row">
                <div class="12u">
                    <textarea name="message" placeholder="Message"></textarea>
                </div>
            </div>
            <div class="row">
                <div class="12u">
                    <input type="submit" class="button" value="Send Message" />
                </div>
            </div>
        </div>
    </form>
</article>

Javascript cannot send an email (unless it's calling a server-side method using AJAX). You need a server-side language (eg C#, php, ColdFusion, etc.).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM