在asp.net中使用邮件的附件文件 [英] Attachfile using mail in asp.net

查看:80
本文介绍了在asp.net中使用邮件的附件文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在发送附件文件时实现了邮件概念,但是如果我们要附加另一个文件后再附加一个文件,那么任何机构都可以动态地获取它

Hi, I am implementing mailing concept in that attach file sending but if we attach one file after we want to attach another file also it will come dynamically can any body know help me

推荐答案

[
This[^] article discusses this topic.


检查



我认为您不清楚您的问题.您告诉您要附加更多动态文件.您还附加一个文件.那你的问题在哪里呢?

假设这是您的附件代码

Hi,

I think you are not clear about your question. you tell that you want to attached more file that will come dynamic. Also you attache one file. so where is your problem?

Suppose this is your attachment code

MailMessage message = new MailMessage();
message.Attachments.Add(new Attachment(Server.MapPath(filename)));



尝试创建更多附件.添加动态文件.



Try with create more attachments.Add with dynamic file.


这篇关于在asp.net中使用邮件的附件文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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