How to Set Up Email Notifications
To configure an email server (for the purposes of sending account confirmation emails, password reset emails, or comment activity emails), open $OXYGEN_FEEDBACK_HOME_DIR/config/feedback-mail.properties and set the following:
- Configure the SMTP Outgoing Server
-
The SMTP name:
spring.mail.host=smtp.example.com
The SMTP port:
spring.mail.port=25
- Configure the From Email Address
-
The name that will be displayed in the From field for email messages sent by this server:
feedback.email.sender=company@sender.example.com
- Configure SMTP Authentication
-
The user name used in the authenticated SMTP:
spring.mail.username=<user>
The password used in the authenticated SMTP:
spring.mail.password=<password>
- Configure STARTTLS Protocol Command
-
If true, it enables the use of the STARTTLS command (if supported by the server) to switch the connection to a TLS-protected connection before issuing any login commands. If the server does not support STARTTLS, the connection continues without the use of TLS:
spring.mail.properties.mail.smtp.starttls.enable=true
If true, it requires the use of the STARTTLS command. If the server does not support the STARTTLS command, or the command fails, the connect method will fail. The default is false.
spring.mail.properties.mail.smtp.starttls.required=false
- Configure SSL Authentication
-
If set to true, it uses SSL to connect and uses the SSL port by default. The default is false for the SMTP protocol and true for the SMTPS protocol:
spring.mail.properties.mail.smtp.ssl.enable=true
Specifies the port to connect to when using the specified socket factory. If not set, the default port will be used.
spring.mail.properties.mail.smtp.ssl.socketFactory.port=465
- Advanced Properties
-
The default message encoding:
spring.mail.default-encoding=UTF-8
Oxygen Feedback Enterprise uses JavaMail for sending emails and it allows additional properties to be set using the following pattern:
spring.mail.properties.{JAVA.MAIL.PROPERTY}=
See all available properties in the JavaMail documentation at: https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html#properties.spring.mail.properties.*=