Help with adding file as attachment

i am creating a plugin and i implemented file upload but i need help sending those file as an email...
cause currently it uploads the file but doesn't send it to an email...

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking