FIX: emails.rake use authentication (PR #10572)

It looks like support got added for DISCOURSE_SMTP_AUTHENTICATION in Discourse, but not in this rake task (or perhaps it’s always been broken?).

N.B.: I have not tested this code, but it reportedly works and looks safe to me.


This pull request has been mentioned on Discourse Meta. There might be relevant details there:

Thanks this looks good to me.