* Fixed warnings when setting up $data array.
* Fixed issue where emails were getting double content.