Apparently some strings can be null leading to errors sending mails