I just reported a bug to Discourse based on something I saw on this forum, but it turns out that bug was fixed a long time ago. Problem is that you’re running on an outdated version of the forum.
https://meta.discourse.org/t/code-tags-dont-prevent-formatting-in-e-mails/13020