如何通过System.Net.Mail.Attachment发送附件(图片列表)? [英] how to send attachment (image from list) via System.Net.Mail.Attachment?
本文介绍了如何通过System.Net.Mail.Attachment发送附件(图片列表)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在ListIm列表中有图片,我想发送它们。不得在磁盘上创建图像。
我尝试过这样的事情:
...代码....
和这个:
I have pictures in list called ListIm, and i would like to send them. Images must not be created on disk.
I tried something like this:
... code ....
and this:
Pr p = new Pr();
for (int i = 0; i < num; i++)
{
System.Net.Mail.Attachment att1;
att1 = new System.Net.Mail.Attachment(ListIm[i]);
email.Attachments.Add(att1);
}
推荐答案
尝试类似 this [ ^ ]。
这篇关于如何通过System.Net.Mail.Attachment发送附件(图片列表)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文