fixed problem with empty email subject and body