从html表单发送电子邮件 [英] send email from html form

查看:108
本文介绍了从html表单发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<div class="form-area">  
    <form role="form" method="post" action="" id="registerform">
        <br style="clear:both">
    		<h3 style="margin-removed 25px; text-align: center;">Registration Form</h3>
		<div class="form-inline">
		<label class="radio">
			<input value="property" type="radio" name="whatneed" checked="">   Property Loan
		</label>
		   <label class="radio">
			<input value="automobile" type="radio" name="whatneed">   Automobile Loan
		</label>
		</div>
		<br>
		<div class="form-group">
		<div class="input-group">
			<input type="text" class="form-control" placeholder="Your Budget" name="budget" required>
			<span class="input-group-addon">.00</span>
		</div>
		</div>
		<div class="form-group">
			<input type="text" class="form-control" name="whenneed" placeholder="When are you planing to buy" required>
		</div>
		<div class="form-group">
			<input type="text" class="form-control" name="location" placeholder="Location" required>
		</div>
		<div class="form-group">
			<input type="text" class="form-control" id="name" name="name" placeholder="Name" required>
		</div>
		<div class="form-group">
			<textarea class="form-control" type="textarea" name="address" placeholder="Your Address" maxlength="140" rows="7"></textarea>                  
		</div>
		<div class="form-group">
			<input type="text" class="form-control" id="mobile" name="mobile" placeholder="Mobile Number" required>
		</div>
		<div class="form-group">
			<input type="text" class="form-control" name="landline" placeholder="Landline Number" required>
		</div>
		<div class="form-group">
			<input type="email" class="form-control" id="email" name="email" placeholder="Email" required>
		</div>
        <button type="submit" id="submit" name="submit" class="btn btn-primary pull-right">Submit Form</button>
    </form>
</div>







嗨。这是我的HTML表单。我需要在用户点击提交按钮时通过电子邮件发送此内容我是dot net的新手。请帮我解决这个问题。




Hi. This is my HTML form. I need to email this content when user click submit button. I'm new to dot net. Please help me to fix this.

推荐答案

这个主题有很多教程。你应该在google上搜索。



这是一个 - 发送电子邮件 - 完整的ASP.NET教程 [ ^ ]。



如果您不想使用Asp.net,则可以在表单标签中添加mailto属性动作属性。
There are many tutorials on this topic. You should search on google.

Here is one - Sending e-mails - The complete ASP.NET Tutorial[^].

If you don't want to use Asp.net, then you can add a mailto attribute to the form tag "action" attribute.


这篇关于从html表单发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆