how to pull data from view to file and attach to email
You have to use Views PDF module to output of views as PDF.
Use Mime Mail module to send email with attachment.


Write own custom logic to action performed or any rules.

Custom function to send mail as attachment visit here.

You may also check this