Saturday 8 August 2015

Setting up Liferay mail server with Gmail

To setup Liferay with Gmail to send mail to users. (Eg. When they register, forget their password, etc.) We need to configure the Mail server setting in the Control Panel.

Firstly, Liferay is considered as a Less secure app in Gmail. To allow Liferay to use Gmail as a mail server, we need to enable the feature. Below link is from Google Support that shows how to enable this feature. It is as simple as selecting a radio button.
Gmail Support - Allowing less secure apps to access your account

Now continuing with the configuration. Go to
Control Panel -> Server Administration -> Mail
Here we need to fill details for the Outgoing SMTP Server to send mail from Liferay.

SMTP settings for Gmail can be found in the below page.
Google Apps SMTP settings to send mail from a printer, scanner, or app

Here's how to use the settings in liferay:

Outgoing SMTP Server: smtp.gmail.com
Outgoing Port: 465
Use a Secure Network Connection: Checked
User Name: Your Gmail Mail ID
Password: Your Gmail password

Save the settings and you're done.

Below is a screenshot of my mail settings for reference.

No comments :

Post a Comment