I am using the following code to send an email with attachments. I can send one attachment but how can I send multiple attachments?
Dim vrAttachFilePath As String = "c:\users\ittahad\documents\abc.doc"
If vrAttachFilePath.Length > 0 Then
oMail.Attachments.Add(New Net.Mail.Attachment(vrAttachFilePath))
End If
Put quite simply:
You can add as many attachments as you want simply by calling
Attachments.Addwith each attachment.