Forums de discussion

Liferay 7 - web form email address exception

Ulrich Kohlhase, modifié il y a 7 années.

Liferay 7 - web form email address exception

New Member Envoyer: 1 Date d'inscription: 29/01/14 Publications récentes
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, modifié il y a 6 années.

RE: Liferay 7 - web form email address exception

Liferay Master Publications: 654 Date d'inscription: 06/01/09 Publications récentes
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.