Basically I would like to achieve the following result: on a web page user clicks on a
Share button and it opens up his default email client with a PDF with the contents of the page attached to it.
I was think to use a combination of html2canvas and react-pdf to generate a PDF page and attach it to this email that would be opened directly from the client side. Is it something possible to implement, or would I need to do it through the server side, or is it something just generally not possible?
I found some topics about it that state that it is only possible to add attachment from the client’s machine, not the web (which includes both React client and Node.JS server that I have spinning on AWS EC2 / or something from AWS S3 bucket, I assume), however I feel like I have seen it being implemented on some sites in the past.
Ideally, in future it would be an overlay opening on
Share button that would have options to open email / Slack / MS Teams client with that PDF attachment, but for now just focusing on email part.