Enabling SMTP
Last updated
Last updated
Polarity can connect to an existing SMTP server to send email notifications to Polarity users. Emails are sent for the following purposes:
Account Creation
When a new local account is created, an account creation email is sent to the new account which can include an auto generated login password.
Upvote Notification
If enabled by the user, the user will receive an email anytime an annotation they applied is upvoted.
Comment Notification
If enabled by the user, the user will receive an email when a comment is made on an annotation they applied or previously commented on.
Channel Notification
If enabled by the user, the user will receive an email anytime they gain access to a new channel.
Integration Notification
If enabled by the user, the user will receive an email when they gain access to a new integration.
SMTP can be enabled on the Polarity server by logging in via the web interface using an account with admin
privileges. After navigating to the "Advanced Settings" page, in the left navigation panel, select "Server Configuration" and then along the top of the page select "SMTP".
If this is your first time configuring SMTP, click on the Edit button and fill in the required options. After configuring the required options be sure to click on the Enabled toggle to turn on the SMTP mailing service.
The following is a list of options that can be configured:
The fully qualified domain name of the SMTP server. As an example, this might be smtp.mycompany.corp
.
The port number for your SMTP server. The standard port is 25 or for secure SMTP, 587.
The username to use when authenticating to the SMTP server.
The password for the provided Username option above.
Address you want notification emails to be sent from.
Choose one of the following options for connection security. The most common option is TLS particularly if your SMTP server is running over port 587. If your SMTP server is running over port 25 you may need to set this to None
.
None
SSL
TLS
The amount of time in milliseconds the Polarity Server will wait while attempting to connect to the SMTP server. This value defaults to 5,000 and does not typically need to be changed.
This value will default to the hostname of the Polarity Server and does not typically need to be changed.
A list of preferred authentication methods to use. The default value is CRAM-MD5
, LOGIN
, PLAIN
, and XOAUTH2
. This value does not typically need to be changed.
You can test whether the Polarity Server is successfully able to send an email by using the Test SMTP Settings button at the bottom of the SMTP configuration page
After clicking on the button, if an email message was successfully sent, you will see a message that says "Successfully sent mail". The email itself will be sent to the email address for the account you are currently logged in as. Check to ensure that you received the email to confirm that SMTP settings are properly configured.
If you receive back an SMTP status code you can check the meaning of the code using the following reference: