Hi Guys,

I am using Visual-Basic-6

The below code works fine to attach a single file into mail.

objMail.attachments.Add ("C:\Zim Suite\Requests\" + Text1 + "-" + Text2 + "-" + Text5 + "-Test Document" + ".pdf")

How do I attach multiple files into my mail?

Text1, Text2 and Text5 are common to all files. The extensions could be a mixture of .pdf, .jpeg and .xlsx files.

Recommended Answers

All 2 Replies

Short answer: Add a line of code for each file you want to add to that email.

As an aside, do you mind if I ask how happen to be working in VB6? Is this a legacy application?

commented: This was the last year our office would do anything with VB6 apps. Now we'll only talk about migration. +16
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.