Message Boards

Liferay 7 - web form email address exception

Ulrich Kohlhase, modified 7 Years ago.

Liferay 7 - web form email address exception

New Member Post: 1 Join Date: 1/29/14 Recent Posts
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, modified 6 Years ago.

RE: Liferay 7 - web form email address exception

Liferay Master Posts: 654 Join Date: 1/6/09 Recent Posts
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.