Email uploaded PDF document
I want to email PDF document uploaded using FileUpload UI element as attachment.
I have seen many posts on this, but not found solution yet.
One workaround suggested is storing uploaded document on server and then sending the document by reading it from specified server path. But there are few problems with this approach. As many users will be accessing this application unique name needs to be generated for each uploaded file.Also, after sending the file it should be deleted from the server.
Is there any way uploaded document (in binary form) can be send via mail without storing it on the server?