Skip to content

Add some config to custom SMTP server#16

Open
ducnt102 wants to merge 3 commits intochpc-uofu:masterfrom
ducnt102:smtp-cfg
Open

Add some config to custom SMTP server#16
ducnt102 wants to merge 3 commits intochpc-uofu:masterfrom
ducnt102:smtp-cfg

Conversation

@ducnt102
Copy link

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

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