add alternative (text/plain) use in case of error with text/html