Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Support authenticated SMTP #2102
Conversation
matrixbot
commented
Apr 5, 2017
|
Can one of the admins verify this patch? |
matrixbot
commented
Apr 5, 2017
|
Can one of the admins verify this patch? |
matrixbot
commented
Apr 5, 2017
|
Can one of the admins verify this patch? |
|
@matrixbot ok to test |
erikjohnston
assigned
dbkr
Apr 5, 2017
| #email: | ||
| # enable_notifs: false | ||
| # smtp_host: "localhost" | ||
| # smtp_port: 25 | ||
| + # require_transport_security: False |
dbkr
Apr 5, 2017
Member
Need examples for smtp_user and smtp_pass too (this way they're in the template and it's obvious that they're options)
| + raw_from, raw_to, multipart_msg.as_string(), | ||
| + port=self.hs.config.email_smtp_port, | ||
| + requireTransportSecurity=self.hs.config.require_transport_security | ||
| + ) |
dbkr
Apr 5, 2017
Member
It would probably be better to just have one place that calls sendmail: the default for the other params is None, so it should be fine to just pass them through, and presumably requireAuthentication could just be self.hs.config.email_smtp_user is not None.
dbkr
removed their assignment
Apr 5, 2017
|
@dbkr I agree these changes make sense, I have refactored & added the config example |
DanielDent commentedApr 5, 2017
Closes (SYN-714) #1385
Signed-off-by: Daniel Dent matrixcontrib@contactdaniel.net