如何使用C#中的单个文件上传按钮发送带有多个文件附件的电子邮件? [英] How to send Email with multiple file attachment by using single file upload button in asp.net,C#?

查看:188
本文介绍了如何使用C#中的单个文件上传按钮发送带有多个文件附件的电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过在asp.net,C#和Sql Server中使用单个文件上传来发送带有多个文件附件的电子邮件?
如果有人知道答案请发送给我回复紧急,这是非常紧急的任务,请发送此多文件上传控件的示例代码.....

How to send Email with multiple file attachments by using single fileupload in asp.net,C# and Sql server?
If anybody knows the answer pls send me reply urgent, This is very urgent task plssss send Example code of the this multiple fileupload control .................

推荐答案



一旦我遇到这样的问题,就想不一样.我使用中继器创建我自己的控件,然后上传文件.选择文件后作为gmail附件添加了Repeater.因此可以有多个附件..


快乐编码


think different once i had problem like this. i create my own control using a repeater , and a file upload. as gmail attachment once a file selected it added repeater . so multiple attachments can be possible..


happy coding


如果它是标准的文件对话框,那么我相信您可以使用控制键选择多个文件.要选择一组连续文件,请按住Shift,单击该组的第一个文件,然后在按住Shift的同时,单击最后一个文件.要有选择地选择多个单个文件,可以在单击所需的每个文件的同时按住Control.
If it is the standard File Dialog, then I believe you can select multiple files by using the control keys. To select a set of contiguous files, hold down Shift, click the first file of the set, then while still holding Shift, click the final file. To selectively choose multiple individual files, you can hold Control while clicking each of the files that you need.


这篇关于如何使用C#中的单个文件上传按钮发送带有多个文件附件的电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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