I read your answer already. I just want to answer TonP.
Thank you so much for your answer,
I have used this gmail VI with decent success. However, when I attach a file, it seems to leave the file open so that I cannot open it elsewhere in the program. Is there a way to fix this?
I assume that if you close all of the refernces you should have no problem: