Allow emails to be only HTML or plain text.
Add regression test script.