added ToCs to endpoints + attach_pdf parameter when sending emails