Api for sending email pdf