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)
精彩评论