fix email generation, make PDF expiration long for staging2 testing