<form action="" method="post">
<div>
<label for="name">Name:</label>
<input type="text" id="name" name="user_name" />
</div>
<div>
<label for="mail">E-mail:</label>
<input type="email" id="mail" name="user_email" />
</div>
<div>
<label for="msg">Message:</label>
<textarea id="msg" name="user_message"></textarea>
</div>
<div class="button">
<button type="submit">Send your message</button>
<input id="sendto" name="sendto" type="hidden" action="mailto:admin@vervemycashlesscampus.com" />
</div>
如何将答案发送到我的邮箱?检查我是否正确编写了代码
答案 0 :(得分:1)
您需要在mailto:
form
属性中定义action
个链接。
<form action="mailto:admin@vervemycashlesscampus.com" method="post">