如何使用C#从Windows窗体应用程序通过电子邮件发送datagridview的值 [英] How to send the values of a datagridview through e-mail from my windows form application using c#

查看:138
本文介绍了如何使用C#从Windows窗体应用程序通过电子邮件发送datagridview的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我有一个winform,它有两种形式,一种是将学生的详细信息存储到数据库中,另一种是通过使用datagridview.ret从表中检索信息.现在,我希望用户能够通过电子邮件发送学生的信息.请有人帮助,带有注释的代码示例将非常有帮助.预先感谢大家

Hi everyone
i have a winform that has two forms one of them stores student details to a database and another form retreive the information from the table by the use of a datagridview.now i want the user to be able to send the information of a student via email. Please someone help,code example with comment wil be very helpful. Thanks everyone in advance

推荐答案

搜索代码以通过smtp轻松发送电子邮件.
然后Datagridview.DataSource将返回数据表以从中获取数据.
提出问题时,请具体说明.
Search for the code to send email its easly available through smtp.
And Datagridview.DataSource will return you the datatable to get the data from.
please be specific when you ask a question.


^ ]

可能对您有帮助...
http://www.aspdotnet-suresh.com/2012/09/how-to-send-gridview-in-email-body-in.html[^]

May be this would help...


这篇关于如何使用C#从Windows窗体应用程序通过电子邮件发送datagridview的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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