Optional switch parameter for msgText

I added an optional paramter to the msgText() function so that it could
easily be overloaded to allow the message to be sent with html headers.