Fixes problem where {e_PLUGIN}, {THEME} etc. are replaced with empty values when using parseTemplate(). Now retains theme for use by replaceConstants() etc.
Fixed - mail handler now embedding images with the {THEME} constant correctly.