May 1, 20187 yr I currently am setting up a bulk-send script that needs to include an attachment. The attachment is a pdf in a folder that is saved ahead of time (from outside FM). I am not sure where in the script to put the actual attachment function. Outside the loop: The same file is sent in every email. (The pdf that relates to the first record) Inside the loop: The first email is right, the 2nd has the first pdf, plus the correct one, the third has the first two plus the correct one, and so on. What am I missing? Thanks. EmailRegister [..] EmailConnectSMTP [..] EmailConnectIMAP [..] EmailCreate [..] Go to Record [First] Loop EmailAttachfile [..] EmailRecipients [..] EmailSetSubject [..] EmailSetBodyFile [..] ... EmailSend EmailMoveCurrentMessage [..] Go to Record [Next] End Loop EmailDisconnect Fixed. I moved EmailCreate inside the loop. That was easy. Edited May 1, 20187 yr by MileFaker3000
Create an account or sign in to comment