List of mails, transactionNumber problem

I don’t find the solution.
I need to process each mail out of a List of mails.
It always takes the first mail instead of each mail.
What am I doing wrong?



You should have your acitvity inside a For Loop. Ex: For each item in lstMails then your transaction processing logic inside