【发布时间】:2014-04-01 13:37:50
【问题描述】:
我的一个 html 文件中有一个表单,我想通过表单将电子邮件直接提交到表单的 MAILTO 属性中指定的电子邮件。
表格:
<form role="form" action="mailto:sm.ayman10@gmail.com" method="get" enctype="text/plain">
<div class="form-group">
<label for="emailinput"><h4><span class="glyphicon glyphicon-envelope"></span> E-mail</h4></label>
<input class="form-control" type="email" id="emailinput" placeholder="Entrez votre e-mail">
</input>
</div>
<div class="form-group">
<label for="messageinput"><h4><span class="glyphicon glyphicon-pencil"></span> Message</h4></label>
<textarea class="form-control" id="messageinput" placeholder="Ecrivez votre message" rows="3"></textarea>
</div>
<br/>
<div class="text-right">
<button type="submit" class="btn btn-default">
<span class="glyphicon glyphicon-upload"></span> Envoyer
</button>
</div>
</form>
当我测试并点击它时,我会打开一个 windows live mail 窗口,而不是发送电子邮件到正确的地址。
我需要做什么才能让它发送电子邮件? (信息:我的后端是用 Java 实现的)
【问题讨论】: