Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ducnt102
Copy link

Add two SMTP parameters to enable login for mail servers, including the starttls parameter and a login requirement.

@@ -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)
Copy link
Collaborator

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
Comment on lines 24 to 25
smtp_passwd = '' # Used to login
smtp_starttls = true # default false
Copy link
Collaborator

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.

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants