I have the following line of code that will attach an ‘attachment’ to an e-mail that is being automatically created:
objMail.Attachments.Add AttachmentText
AttachmentText is a string variable with the path and filename to a PDF file that I want to attach and it all works perfectly. If I want to send more than one attachment, how should AttachmentText be formatted?
Thank you.
I have tried putting a comma between filenames (as one online article suggested) as in the following examples. None of them work:
Filename1.pdf,Filename2.pdf
“Filename1.pdf”,”Filename2.pdf”
“Filename1.pdf,Filename2.pdf”
Ian Bateman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.