This is misleading:
$ rake 'emails:test[email@example.com]' Testing sending to firstname.lastname@example.org using mx-out:25. SMTP server connection successful. Sending to email@example.com. . . Mail accepted by SMTP server. If you do not receive the message, check your SPAM folder or test again using a service like http://www.mail-tester.com/. If the message is not delivered it is not a problem with Discourse. Check the SMTP server logs to see why it failed to deliver the message.
In this case, no email was sent since
SiteSetting.disable_emails == "non-staff".
We should warn about this in the rake task. Do we want to:
- add logic to
Email::Sender#sendthat returns a value indicating whether the message was sent (e.g. sent, skipped, disabled, no_message)
- or, add logic to the
emails:testtask that tests only for