I have a function that loops through a table and sends an email with an attachment to each email address in the table.
I store the file name to a variable "Attach".
The problem I am having is that the .AddAttachment =Attach keeps adding an additional copy of the attachment every time the scripts loops through the table.
So after I get to the 20th record in the table, that email has 20 copies of the attachment with the email.
I have uploaded the script, can you tell what the problem is?