I am fairly new to writing codes and built the code below using others' codes, and modified to suit my needs.
I send invoices everyday (which are pdfs). Sometimes I need to send emails with multiple attachments (based on if a customer has two or more invoices that need to be sent out for the...