EMAILPLT-157 Fix CAS integration

Alternate implementation to https://github.com/Jasig/email-preview/pull/52/files
Merge pull request #54 from jameswennmacher/EMAILPLT-157

EMAILPLT-157 Fix CAS integration