通过 Discourse API 接收电子邮件的代码

From the output of rake routes You can send a POST request to

admin/email/handle_mail

Here is the controller method from handle_mail: