Liferay's Mail portlet enables your users to interact with their email using an easy to use, ubiquitous web interface. If your mail system supports the IMAP protocol, you can use the Mail portlet to integrate your users' mail with the rest of your web site. You can also connect the Mail portlet to a mail account provided by Google.
The Mail portlet is distributed with the Liferay bundles, but is not included as part of the .war distribution, as it is a separate plugin. If you installed the Liferay .war manually on your application server, you can install the Mail portlet by going to the Control Panel, clicking Plugins Installation, and then clicking the Install More Portlets button. Find the Mail portlet in the list, click on it, and then click Install.
Illustration 61: Liferay Mail Portlet, with messages blurred out to protect the owner of the account. To connect the Mail portlet with an email account, click the Add a New Email Account link. From there, you are given a choice between an IMAP account or a Gmail account. Choose the option that you wish, and fill out the form that appears.
For an IMAP account, these fields are necessary:
Email Address: The email address which receives mail for this account.
User Name: The user name for logging into the account.
Password: The password for logging into the account.
Incoming IMAP Server: The host name for your IMAP (Internet Mail Access Protocol) server.
Incoming Port: The port upon which the IMAP service is running.
Use Secure Incoming Connection: Check this box to use an encrypted connection to the server, if your server supports it.
Outgoing SMTP Server: The host name of your SMTP (Simple Mail Transfer Protocol) server.
Outgoing Port: The port upon which the SMTP service is running.
Use Secure Outgoing Connection: Check this box to use an encrypted connection to the server, if your server supports it.
For a Gmail account, all you need to do is provide your email address and your password, and the portlet will take care of the rest.
When finished, click Save. Next, click Check Your Mail. You will be brought to an interface which allows you to read your mail and compose new messages. To read a message, click on it. To compose a new message, click the Compose Email link on the left side of the portlet. You will be brought to a form which allows you to compose an email message using the same rich text editor that appears everywhere else in Liferay.
The Mail portlet is a great way to integrate a familiar service with other collaboration features that Liferay provides.