I have a controller action that can render the response in pdf format as
well as html format.
Now, I need to attach a pdf file rendered by the above action to an
email on the fly.
How can I do this?
What is the the best practice?