I just solved the problem with the email functionality. I hope you'll still find it relevant by the time you get this;
Open the MailHandler.php script and look for the line with this part
Try closing up the space between the full stop (.) and the dollar sign ($)
Do this for all other lines containing this.
This should fix the bug. Please let me know if it works for you.