Multiple attachments in email

D

David C

I have an asp.net web page that is emailing and I need to handle multiple
attachments from a FileUpload control. I have the following code for
handling a single attachment. I am putting the file names into an array with
a semicolon in a hidden Label named LblAttachments for each filename
uploaded. For example "abc.doc;xyz.doc;...etc.
How can I do this? Thanks.

-David

If FileUpload1.FileName <> "" Then
mm.Attachments.Add(New Attachment(FileUpload1.PostedFile.InputStream,
FileUpload1.FileName))
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top