设置电子邮件功能
本节介绍如何在内部 安装中启用电子邮件功能。
设置电子邮件
默认情况下,Frontline 提供多种基于电子邮件的功能。因此,需要配置电子邮件服务器。 通过这些设置启用电子邮件功能:
spring.mail.host=smtp.example.com
spring.mail.port=587
spring.mail.username=<username>
spring.mail.password=<password>
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.connectiontimeout=5000
spring.mail.properties.mail.smtp.timeout=5000
spring.mail.properties.mail.smtp.writetimeout=5000
xserver.email.notifications.enabled=true
xserver.sendgrid.enabled=false
此处需要输入电子邮件(而不是 <>):
spring.mail.username=<username>
spring.mail.password=<password>
确保已配置的电子邮件允许在其他应用程序中使用。
使用 SendGrid
也可以使用第三方服务SendGrid 代替连接电子邮件服务器。为此,请使用以下属性:
xserver.email.notifications.enabled=false
xserver.sendgrid.enabled=true
xserver.sendgrid.apikey=<apikey>
xserver.mail.from=<frommail>
xserver.sendgridservice.mail.from.name=<companyname>