fix email file path and filename