开发者

C#/NET: is there a way to send mail attachments from the Internet without downloading them

开发者 https://www.devze.com 2023-03-15 02:03 出处:网络
My web app has to send e-mails with HTML files from the Internet attached to them. Currently I download the files with

My web app has to send e-mails with HTML files from the Internet attached to them.

Currently I download the files with

WebClient.DownloadFileAsync

It takes quite a lot because the files are pretty big, it also takes CPU resources and hard drive sp开发者_运维问答ace.

Is there a way to send online attachments without downloading them first?

Thanks


There is no way to do it unless you can send them from the server they are stored in. As fro the disk space, you can delete them after the mail is sent.
Unfortunately that's the best you can do.

0

精彩评论

暂无评论...
验证码 换一张
取 消