0

モーダルウィンドウで連絡先フォームを作成しようとしました。すべて正しく行ったと思っていましたが、[送信] をクリックしてもメールが届きません。誰かが私が間違っているところを教えてもらえますか?

よろしくお願いします。メリークリスマス!

<!-- 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>
4

1 に答える 1

0

どのメールサーバーを使用していますか?

フォームの http 要求を処理するために使用されるサーバー側のコードはどこですか?

html でフォームを作成するだけでは何の役にも立たず、mailto: のアクションは正しくありません。また、このメール アドレスはマークアップに表示され、閉じるまでスパムメールが送信されるため、これを行う必要はありません。

どのプログラミング言語を使用する予定ですか?

以下は、php を使用して従うことができる基本的な例です。

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

于 2012-12-24T17:47:50.060 に答える