My Get transaction Data only loops one mail of a list of emails

Next, regarding attatchments, you will be able to get it after some time per this link

Hope that gives some idea.