Can I use HTML5 to send a client-side email?

前端 未结 6 1258
没有蜡笔的小新
没有蜡笔的小新 2020-12-01 19:35

I want to send an email in HTML5. I don\'t want to force the user to open a mail client, I want to send the email directly from the web page.

On a side note, is ther

6条回答
  •  感情败类
    2020-12-01 20:32

    You can't send the email using JavaScript alone. You'll need some form of server side processing (PHP, ASP, etc) to send the actual email.

    There's a good tutorial on setting up an ajax form here: http://net.tutsplus.com/tutorials/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/

    It doesn't include the PHP (or ASP, etc) for sending the email, but there are plenty of tutorials out there for how to send an email using PHP.

提交回复
热议问题