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.
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
Post a Comment