Настройка почтовых сообщений для пользователя |
Инструмент: НБР-админка |
|
В server.properties добавить конфигурацию по взаимодейтсвию с почтовым сервером
######################################## # Mail server configuration ######################################## # mail.server.host=mail.inttrust.ru mail.server.host=<mail server> mail.server.port=25 mail.encryption.type=none mail.username=XXX mail.password=XXX mail.default.sender=CompanyMedia@company.ru mail.default.sender.name=CompanyMedia # URL part to CMJ-WebGUI after host. Used for URL in e-mail notifications url.server.host.name=http://<ip>:<host> url.app.name=cmj-web mail.admingui.url.host.name=http://<ip>:<host> mail.admingui.url.app.name=ssrv-war # Host of CMJ-WebGUI. Used for URL in e-mail notifications schedule.service.enableOnStart=true |
В случае, если в мониторинге уведомлений будет пусто, то нужно включить логирования для выявления
<periodic-rotating-file-handler name="Notice" autoflush="true"> <formatter> <named-formatter name="PATTERN"/> </formatter> <file relative-to="jboss.server.log.dir" path="Notice\notice.log"/> <suffix value=".yyyy-MM-dd"/> <append value="true"/> </periodic-rotating-file-handler> <!-- ... --> <logger category="ru.intertrust.cm.core.business.impl.NotificationServiceImpl" use-parent-handlers="false"> <level name="ALL"/> <handlers> <handler name="Notice"/> </handlers> </logger> <logger category="ru.intertrust.cm_sochi.srv.connector.sochi.notifications.pkd.PkdBaseChannel" use-parent-handlers="false"> <level name="DEBUG"/> <handlers> <handler name="Notice"/> </handlers> </logger> <logger category="ru.intertrust.cm_sochi.srv.connector.sochi.notifications.SochiNotificationChannelSelector" use-parent-handlers="false"> <level name="DEBUG"/> <handlers> <handler name="Notice"/> </handlers> </logger> <logger category="ru.intertrust.cm_sochi.srv.connector.sochi.notifications.pkd.PkdNotificationChannel" use-parent-handlers="false"> <level name="DEBUG"/> <handlers> <handler name="Notice"/> </handlers> </logger> <logger category="ru.intertrust.cm_sochi.srv.connector.sochi.notifications.pkd.SochiMailNotificationChannel" use-parent-handlers="false"> <level name="ALL"/> <handlers> <handler name="Notice"/> </handlers> </logger> <logger category="ru.intertrust.cm.core.business.impl.notification.MailNotificationChannel" use-parent-handlers="false"> <level name="ALL"/> <handlers> <handler name="Notice"/> </handlers> </logger> |
Действия |