The problem with the unresolved POUs was that my firmware on the controller was very outdated. it was Rev 3 current is Rev 8. I had included the File Library in my project it just didn't like it when transferring.
I am still working on getting the email function to work with gmail, but I seem to be making progress.
currently using the WagoLibSecureMail library since Gmail requires SSL.
ETA:
I got it to work using the WagoLibSecureMail library.
Here is my code. Very simple but it works. See my Attachments