-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMTP no longer works on newest builds #911
Comments
Thanks for bringing that up @doomdance, I was in the process of submitting an issue about this myself. I use Mandrill for delivery and it worked fine until I pulled latest code from GH. I do not have any details at hand at the moment because I'm "on the go". However, you're not alone with having this issue. |
Okay, so I just tested it and I'm receiving the same message as @doomdance.
|
Are you setting MAIL_URL? I assume no? The loading of settings was recently changed to load quicker. I don't see anything else in the last few days involving that. We'll take a look. |
It's because we're loading settings ASAP instead of waiting for Meteor.startup (like we used to). MAIL_URL is never set because RocketChat.settings.get calls returns undefined when the following code is executed:
RocketChat.settings uses Meteor.settings behind the scenes, and even though we "add" the values, they aren't available until Meteor is fully initialized. Thus, we need to wrap it with
|
Fix #911. Set MAIL_URL variable after Meteor.startup
SMTP for account registration now works but it is still broken for password resetting and re-sending email confirmation. |
@doomdance confirmed that password reset and re-send email confirmation not working. I found the problem, will submit pull request later tonight. btw, how did you get to the re-send email confirmation page? I had to hack the login to get to it. |
@rwakida If you try logging in as a user that is not verified, it should take you to this prompt. |
Cool. Thanks @doomdance. Not sure why I couldn't get to that before....oh well. I'll submit a pull request tonight. |
Anytime! And thank you, @rwakida! |
I think Im seeing this issue on an instance I built a couple of weeks ago. Im struggling to work out how to tell what version of rocket chat I have installed currently. I can't find anything visible in the UI, or in the app.json etc. Do you know what release this was fixed in, and how I tell what version I currently have installed ? |
I've built RC several times in the past weeks and implimented SMTP successfully each time. As of yesterday I have attempted two builds, each on clean servers, and one local build with meteor and sending emails through SMTP does not work on any of them. I have tested with multiple SMTP accounts as well and monitoring outgoing network connections (nothing). When I finally deployed locally I was able to see the following output in my terminal:
Bear with me as I'm not a developer but I also see there changes made a few days ago: https://github.com/RocketChat/Rocket.Chat/search?utf8=%E2%9C%93&q=MAIL_URL
Could these be the cause?
The text was updated successfully, but these errors were encountered: