How to say "I am attaching a file" in an email?

My teacher uses: в приложении... but this seems a bit formal to me?

A well-known translator is giving me: я прикрепляю файл. Is this ok? Or...