google.com, pub-5747754088801811, DIRECT, f08c47fec0942fa0 Skip to main content

Gmail Configuration Liferay Through ext properties file

Put below property in portal-ext.properties file.


mail.session.mail.transport.protocol=smtp

mail.session.mail.smtp.host=smtp.gmail.com

mail.session.mail.smtp.password=

mail.session.mail.smtp.user=

mail.session.mail.smtp.port=465

mail.session.mail.smtp.auth=true

mail.session.mail.smtp.starttls.enable=true

mail.session.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory




Provide your Gmail account mail and Password in above properties.

Restart the liferay server.


Some time google not allow to use above configuration in that case go to below url

https://www.google.com/settings/security/lesssecureapps



Click on Turn On Checkbox.

Comments

Popular posts from this blog

Disable cache content of browser access on back button after logout liferay dxp

Some time we have requirement where we do not want to allow back button after logout and show cached browser content. Liferay provide properties which with we are able to restrict to see content on back button after logout. If user click back button after logout it will show the login page. We require to provide below properties in portal-ext.properties. Restart the server once applying below properties browser.cache.signed.in.disabled=true

Liferay crud porrtlet with Jasper Reports.

I have used Meera Prince Crud operation demo for the Jasper reports which allow to export report in PDF , word, XLS format. It will look lie below image. Find Source code for the complete example on below location. LIFERAY JASPER REPORT INTEGRATION 1 I have available PhoneManger Crud Portlet which have pagination and crud functionality. 2 I create report-listing-mobile.jrxml  file with help of Ireport tool. <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report-listing" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin=&q