Hi yes it's possible there is component that allows you to retreive emails and write the content into files.
it's the tPop component, it's configuration should look like this :
The port is usually 110 or 995 (if it works over SSL/TLS)
And in the advanced setting you can filter the mail you want to retreive for example :
This configuration would allow you to retreive mails with the subject "PASSWORD_FTP" from the sender "[email protected]"