RocketChat / RocketChat/Rocket.Chat
Issues storing SMTP Settings
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Not able to setup SMTP as expected
Rocket.Chat Server 0.57.3
Debian 8
Number of Running Instances: 2
DB Replicaset Oplog: yes
Node Version: 4.7.1
Steps to Reproduce:
- Login in as Admin
- Setting up SMTP using WebGUI (filling the form)
- Storing the Information
- Getting popUp "Stored Sucessfully"
- Sending Testmail to myself resulting an "internal error"
Expected behavior:
Able to send mails via SMTP
Actual behavior:
Just not working
Relevant logs:
[34mI20171031-16:40:26.789(0) Updating process.env.MAIL_URL
[34mI20171031-16:41:44.982(0) Exception while invoking method 'sendSMTPTestEmail' TypeError: Cannot read property '0' of undefined at [object Object].Meteor.methods.sendSMTPTestEmail (/home/webmaster/Rocket.Chat/programs/server/packages/rocketchat_lib.js:14136:35) at [object Object].methodsMap.(anonymous function) (/home/webmaster/Rocket.Chat/programs/server/packages/rocketchat_lib.js:1028:26) at [object Object].methodMap.(anonymous function) (packages/rocketchat_monitoring.js:2731:30) at maybeAuditArgumentChecks (/home/webmaster/Rocket.Chat/programs/server/packages/ddp-server.js:1823:12) at /home/webmaster/Rocket.Chat/programs/server/packages/ddp-server.js:905:20 at [object Object]..extend.withValue (packages/meteor.js:1122:17) at /home/webmaster/Rocket.Chat/programs/server/packages/ddp-server.js:904:41 at [object Object]..extend.withValue (packages/meteor.js:1122:17) at /home/webmaster/Rocket.Chat/programs/server/packages/ddp-server.js:903:46 at [object Object]._.extend.protocol_handlers.method (/home/webmaster/Rocket.Chat/programs/server/packages/ddp-server.js:876:21) at /home/webmaster/Rocket.Chat/programs/server/packages/ddp-server.js:755:85
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the sendSMTPTestEmail method in programs/server/packages/rocketchat_lib.js around line 14136 and review the logged TypeError when sending the SMTP test email. Reproduce the configured SMTP flow described in the issue; done means the test email sends successfully without the internal error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100