从网站发送电子邮件 [英] send email from website

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

问题描述

从网站发送电子邮件的最简单方法是什么?
我们可以在Visual Studio中使用任何应用程序来发送电子邮件吗?
还是启用这些功能的C#代码?

我想在我的网站上创建一个应用程序,通过该应用程序将客户端的消息(在客户端单击发送"按钮之后)直接发送到我的yahoo或gmail帐户.

或者,如果我在手机上收到短信,也可以代替电子邮件.

What is the easiest way to send email from the website?
Is there any application we can use in visual studio for sending email?
Or a c# code to enable these facility?

I want to make an application in my website through which client''s message (after client clicks send button) is sent directly to my yahoo or gmail account.

Or if instead of email it will also be done if I am getting sms on my cell phone.

推荐答案

在Internet上进行搜索时有很多链接可用. .

1) http://www.brighthub.com/internet/web-development/articles/6266. aspx [^ ]
2) http://www.c-sharpcorner.com/UploadFile/dchoksi/SendingMail02132007002923AM/SendingMail. aspx [ ^ ]
There are many links available when you do a search on the internet.

1) http://www.brighthub.com/internet/web-development/articles/6266.aspx[^]
2) http://www.c-sharpcorner.com/UploadFile/dchoksi/SendingMail02132007002923AM/SendingMail.aspx[^]


这是一个简单的例子
Here is a simple example
<form method="post" enctype="text/plain" action='mailto:your email address'>
<input type="hidden" name="To" value="your subject for email">
Put question # 1 here:<br>
<input type="text" name="question:" size="50" maxlength="100"><br><br>
Put question # 2 here:<br>
<input type="text" name="question:" size="50" maxlength="100"><br><br>
Put question # 3 here:<br>
<input type="text" name="question:" size="50" maxlength="100"><br><br>
Put question # 4 here:<br>
<input type="text" name="question:" size="50" maxlength="100"><br><br>
Put something here that requires a long answer:<br>
<textarea name="Subject of text area" rows=7 cols=46></textarea>
<br><br>A yes no question goes here:<br>
<input type="radio" name="your question1"value="Yes">Yes<BR>
<input type="radio" name="your question1"value="No">No<br>
<br><br>A yes no question goes here:<br>
<input type="radio" name="your question2"value="Yes">Yes<BR>
<input type="radio" name="your question2"value="No">No<br><br>
<input type="submit" value="Submit"><img src="spacer.gif" width=5 height=1 alt="spacer">
<input type="reset" value="Try again"></form>


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

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