我不能让我的mailto联系表格工作

时间:2012-12-24 17:41:12

标签: modal-dialog contact mailto contact-form

我试图在模态窗口中创建联系表单。我以为我已经做了一切正确但当我点击发送时,我没有收到电子邮件。有人可以告诉我哪里出错了吗?

非常感谢提前。圣诞快乐!

<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Contact McGregor Beauty</h3>
</div>
<div class="modal-body">
<form id="contact" method="post" action="mailto:aka_pipsqueak@msn.com">
Your Name   &nbsp;<input class="input-xlarge" type="text" placeholder="Please write your name here" required>
<br />
Your Email   &nbsp;<input class="input-xlarge" type="email" placeholder="Please enter your email address here" required><br />
Phone(Optional)  &nbsp;<input class="input-large" type="number" placeholder="Add a telephone number"><hr />
<label><strong>Treatments of Interest</strong></label>
<label class="checkbox">
<input type="checkbox" value="Waxing & Tinting">Waxing & Tinting
</label>
<label class="checkbox">
<input type="checkbox" value="Massage">Massage
</label>
<label class="checkbox">
<input type="checkbox" value="Reflexology">Reflexology
</label>
<label class="checkbox">
<input type="checkbox" value="Manicure/Pedicure">Manicure & Pedicure
</label>
<label class="checkbox">
<input type="checkbox" value="MLD">MLD
</label>
<br />
<label><strong>Your Questions/Comments</strong></label>
<textarea rows="2" style="width:500px" type="text" required></textarea>

<div class="modal-footer">
<button class="btn btn-primary" type="submit" data-dismiss="modal" aria-hidden="true">Send</button>
</div>
</form>

1 个答案:

答案 0 :(得分:0)

你正在使用什么邮件服务器?

用于处理表单的http请求的服务器端代码在哪里?

只是在html中有一个表单不会做任何事情,并且mailto:的操作不正确,你也不想这样做,因为这个电子邮件地址可以在标记中看到并且会被垃圾邮件直到你关闭它。

您打算使用哪种编程语言?

以下是使用php可以遵循的基本示例:

http://www.w3schools.com/php/php_mail.asp