work on generating pdfs links in emails