留言板

Liferay 7 - web form email address exception

Ulrich Kohlhase,修改在7 年前。

Liferay 7 - web form email address exception

New Member 发布: 1 加入日期: 14-1-29 最近的帖子
HI,
Is anyone else experiencing an issue with the Liferay 7.0 web form portlet (GA3, also tested with Github liferay-portal master).
When configuring to send as email , entering valid form entries and sending the form, the following exception is thrown:

javax.mail.internet.AddressException: Illegal route-addr in string ``${server-property://com.liferay.portal/admin.email.from.address}''
at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:883)
at javax.mail.internet.InternetAddress.parse(InternetAddress.java:819)
at javax.mail.internet.InternetAddress.parseHeader(InternetAddress.java:580)
at javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:680)
at javax.mail.internet.MimeMessage.getFrom(MimeMessage.java:340)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:897)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
at javax.mail.Transport.send0(Transport.java:169)
at javax.mail.Transport.send(Transport.java:98)
at com.liferay.util.mail.MailEngine._send(MailEngine.java:624)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:382)
...
thumbnail
Tejas Kanani,修改在6 年前。

RE: Liferay 7 - web form email address exception

Liferay Master 帖子: 654 加入日期: 09-1-6 最近的帖子
I've had the same issue.

It seems like it's not picking the configuration you might have done from Web Form portlet configuration.
I'm able to make it work after setting configuration from Control Panel -> System Settings -> Other -> web.form.service.configuration.name ->
  • Set value for -> Email from address
  • Set value for -> Email from name


Hope this helps.