In the Self-hosting category, user Sunday_T reported that their Discourse instance on a subdomain failed to send emails despite correct SMTP settings, resulting in a generic error message. Unable to configure email via the admin panel, they resolved the issue by manually setting the notification_email via the Rails console: rails r “SiteSetting.notification_email = ‘email@here.com’”. This solution was celebrated by ajoythomas, who thanked Sunday_T for solving a persistent problem after days of troubleshooting. User hass then asked for instructions on accessing the console. Sunday_T provided the commands to enter the app container and run the Rails console, clarifying the exact syntax required for the command Sunday_T. Although hass initially encountered a “method R was not found” error, Sunday_T inquired if hass was using the Docker standalone installation, noting hass had followed the manual cloud guide instead Sunday_T.
I verified both domains with my email provider. My app running on domain.com sends email as expected however, discourse app that is in sub.domain.com doesn’t send any email and i cannot see any useful log info about email failure.
When I try to send test email I get; There was a problem sending the test email. Please double-check your mail settings, verify that your host is not blocking mail connections, and try again.
I have tried everthing I have seen in this community, DO community and Stackoverflow. Even from the answers to the questions I asked there about this issue. Feeling frustrated now and wonder if it will ever work.
I decided to manually set up the admin through terminal, however, I cannot set any kind of email including user sign up, test email or anything else in discourse.
OMG!! Thank you sooo much for this! I think I installed (the 30 minute version) at least 25 times, tried every trick in the book to solve this email issue… not to mention any small change in the setting requires a rebuild. As much I love the interface and the UX and what not, boy o boy the installation is anything but a straightforward process. That one line of rails code solved my problem as well. So thanks for sharing that! 3 days of googling, going through this forum finally concludes!