开发者

how to attach multiple files as e-mail attachment in vb.net?

How开发者_如何转开发 do I attach multiple files as e-mail attachments in vb.net? I am trying to use a list box where user will select the file and attach which will appear in a listbox. And also I would like to give the option to delete the attachment also.


http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.aspx

MailMessage.Attachments is a collection.

Try below for each file in your list

message.Attachments.Add(attachment)
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜