如何在C#中作为邮件附件从文件夹发送文件 [英] How to send files from a folder as a Mail Attachment in C#

查看:508
本文介绍了如何在C#中作为邮件附件从文件夹发送文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



这是Chandrakanth。我在发送带附件的电子邮件时有一些疑问。

场景是:我在一个文件夹中有10个Excel文件。每个文件包含1000行。当我单击C#中的按钮时,我想将所有这些文件作为附件发送。怎么送?任何人都可以给我一些解决方案。



谢谢

Chandra

Hi
This is Chandrakanth. I have some query in Sending Email with Attachment.
Scenario is : i have 10 Excel files in a folder. Each file contains 1000 rows. I want to send all those files as a attachment when i click the button in C#. How can send? can any one give me some solution for this.

Thanks
Chandra

推荐答案



我们可以通过C#中的电子邮件发送附件。在我的情况下,我在目录中有近10个文件,我想要读取所有这些文件之后,我想将所有这些文件作为附件发送。希望你能得到我的查询。



谢谢

Chandra
Hi,
We can send attachment through Email in C#. In my case i have almost 10 files in a directory, I want to read all those files after that i want to send all those files as a attachment.Hope you will get it my Query.

Thanks
Chandra




我希望在按钮点击之后自动读取所有这些文件想要将所有这些文件作为附件发送。希望你能理解。



谢谢

Chandra
Hi
I want to read all those files automatically when button click after that i want to send all those files as attachment. Hope you will understand.

Thanks
Chandra


这篇关于如何在C#中作为邮件附件从文件夹发送文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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