Added optional switch to msgText to send html

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.