使用单个邮件从所选行发送多个附件 [英] sending multiple attachment from selected row with single mail

查看:119
本文介绍了使用单个邮件从所选行发送多个附件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在发送带有多个附件的邮件时遇到问题。看看我的例子。



Sl.No文件名附件复选框

1 File1 Attach1 Selected

2 File2 Attach2

3 File3 Attach3 Selected

4 File4 Attach4

5 File5 Attach5 Selected



i已选择带附件的file1,file3,file5。我希望用单个邮件发送这三个选定的附件。



我们如何用单个邮件发送带有上述附件的邮件

I am having problem in sending mail with multiple attachment. see my example.

Sl.No File Name Attachment CheckBox
1 File1 Attach1 Selected
2 File2 Attach2
3 File3 Attach3 Selected
4 File4 Attach4
5 File5 Attach5 Selected

i have selected file1,file3,file5 with attachment. i want to send those three selected attachement in single mail.

how can we send mail with above attachment with single mail

推荐答案

您好,



您可以使用 SMTPClient 类来做到这一点。请查看 [^ ] MSDN上提供的文档。



问候,
Hello,

You can use SMTPClient class to do this. Please have a look at this[^] documentation available on MSDN.

Regards,


参见..

http://www.aspdotnet-suresh.com/2012/07/how-to-send-mail-with-multiple.html [ ^ ]

具有多个附件的电子邮件 [ ^ ]

HTTP:// social.msdn.microsoft.com/Forums/en-US/Vsexpressvcs/thread/9074294c-4e87-446c-a2f9-1593ac557c87/ [ ^ ]

http://stackoverflow.com/questions/1457940/multiple-attachment-file-in -email-using-c-sharp [ ^ ]

http://stackoverflow.com/questions/12356817/can-not-attach-multiple-files-in-the-attachment-of-email-in- c-sharp [ ^ ]
See..
http://www.aspdotnet-suresh.com/2012/07/how-to-send-mail-with-multiple.html[^]
Email With Multiple Attachments[^]
http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvcs/thread/9074294c-4e87-446c-a2f9-1593ac557c87/[^]
http://stackoverflow.com/questions/1457940/multiple-attachment-file-in-email-using-c-sharp[^]
http://stackoverflow.com/questions/12356817/can-not-attach-multiple-files-in-the-attachment-of-email-in-c-sharp[^]


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

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