Remove mail send from generate pdf