Added email code

Added code to send the PDF document via email