Jhipster - 使用 Zoho 配置电子邮件 - 错误 553 Relaying disallowed
Jhipster - Configuring Email with Zoho - Error 553 Relaying disallowed
我是 Jhipster 的新手,在尝试配置 zoho 时遇到错误。
我的设置在/myjhipsterapplicationname/src/main/resources/config/application-dev.yml
mail:
host: smtp.zoho.com
port: 587
username: ****@myCustomDomainOnZoho.com
password: ****** // My password for the above email
protocol: smtp
tls: true
properties.mail.smtp:
auth: true
starttls.enable: true
ssl.trust: smtp.zoho.com
错误,我正在接收
2017-03-02 21:15:13.421 WARN 6192 --- [ints-Executor-2] com.nectotech.com.service.MailService : E-mail could not be sent to user 'asif@nectotech.com'
org.springframework.mail.MailSendException: Failed to close server connection after message failures; nested exception is javax.mail.MessagingException: Can't send command to SMTP host;
nested exception is:
java.net.SocketException: Connection closed by remote host. Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 553 Relaying disallowed as breakpoints@localhost
我尝试了以下方法并且有效。
- 转到/myjhipsterapplicationname/src/main/resources/config/application-dev.yml
搜索
mail:# 特定的 JHipster 邮件 属性,对于标准属性,请参阅 MailProperties
来自:
将 属性 的值替换为您的 SMTP 传出电子邮件地址
我是 Jhipster 的新手,在尝试配置 zoho 时遇到错误。
我的设置在/myjhipsterapplicationname/src/main/resources/config/application-dev.yml
mail:
host: smtp.zoho.com
port: 587
username: ****@myCustomDomainOnZoho.com
password: ****** // My password for the above email
protocol: smtp
tls: true
properties.mail.smtp:
auth: true
starttls.enable: true
ssl.trust: smtp.zoho.com
错误,我正在接收
2017-03-02 21:15:13.421 WARN 6192 --- [ints-Executor-2] com.nectotech.com.service.MailService : E-mail could not be sent to user 'asif@nectotech.com'
org.springframework.mail.MailSendException: Failed to close server connection after message failures; nested exception is javax.mail.MessagingException: Can't send command to SMTP host;
nested exception is:
java.net.SocketException: Connection closed by remote host. Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 553 Relaying disallowed as breakpoints@localhost
我尝试了以下方法并且有效。
- 转到/myjhipsterapplicationname/src/main/resources/config/application-dev.yml
搜索
mail:# 特定的 JHipster 邮件 属性,对于标准属性,请参阅 MailProperties
来自:
将 属性 的值替换为您的 SMTP 传出电子邮件地址