-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add some config to custom SMTP server #16
base: master
Are you sure you want to change the base?
Conversation
@@ -310,7 +310,7 @@ def email_addr_placeholder(username): | |||
username: str | |||
The username of the user. | |||
""" | |||
return ("{}@" + cfg.email.email_domain).format(username) | |||
return ("v.{}@" + cfg.email.email_domain).format(username) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is really a template, so site specific changes should not be included.
etc/config.toml
Outdated
smtp_passwd = '' # Used to login | ||
smtp_starttls = true # default false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe most users do not use this, so it will probably be best to have these commented out in the example configuration file, along with a comment adding more information as to why it is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your reply. In my case, I must use SMTP login and enable STARTTLS to send emails to the email server.
Add two SMTP parameters to enable login for mail servers, including the starttls parameter and a login requirement.