我不知道SMTP服务出了什么问题

You need to not use sandbox mode, which I believe can send only to a single address. There is no reason not to get mailgun configured properly.

See Troubleshoot email on a new Discourse install.