Send outlook email with attachments

I have a folder with multiple files i want to send outlook email with attachments if filename contains specific keyword?

  1. Create a variable of type string array named varMyFiles
  2. Assign it to "Directory.GetFiles("c:\myfolder", "*WhatINeedMyFilesToContain*")
  3. Use For Each to loop that variable
  4. Send your emails using the file as attachment

Thanks for the response @bcorrea How do i attach multiple attachments i want to attach all the files in the same email that contains keyword

oh ok, if you want only one email with all the files, then even easier as the Attachments property for the send email also gets a string array, so you can use the same variable directly there :slight_smile: