Change to accomodate sending HTML via email

Stops no CSS being applied when sent via email. Now puts CSS inline for
when email is enabled.