Fixed bug that caused blank email to be sent.