Foren

How to Configure Mail Portlet

Muhammad Zakir, geändert vor 13 Jahren.

How to Configure Mail Portlet

New Member Beiträge: 4 Beitrittsdatum: 17.11.09 Neueste Beiträge

Hi,
I use:
[indent]
  • Liferay 5.2.3 - Bundled with Tomcat6
  • Ubuntu 9.10
[/indent]Question: I want to use MAIL PORTLET in my website.
Could anybody please let me know:
[indent]
  • How to configure the MAIL PORTLET?
  • What all files to be modified?
  • What all deployments to be done?
[/indent]
NOTE: If anybody can give the Step-by-Step answer for the above question, it would be appreciable.

Early reply would be very much helpful.
thumbnail
Corné Aussems, geändert vor 13 Jahren.

RE: How to Configure Mail Portlet

Liferay Legend Beiträge: 1313 Beitrittsdatum: 03.10.06 Neueste Beiträge
Muhammad Zakir:

  • How to configure the MAIL PORTLET?



http://www.liferay.com/community/wiki/-/wiki/Main/Mail+Portlet

Muhammad Zakir:

  • What all files to be modified?



None

Muhammad Zakir:

  • What all deployments to be done?



Install WAR manually or by PLUGIN down load
Muhammad Zakir, geändert vor 13 Jahren.

RE: How to Configure Mail Portlet

New Member Beiträge: 4 Beitrittsdatum: 17.11.09 Neueste Beiträge
Hi Corné Aussems,
Thanks for the reply.

The below link directs to the Wiki page.
http://www.liferay.com/community/wiki/-/wiki/Main/Mail+Portlet.

In that page:
Text goes as follows: Mail Portlet is a plugin and can be installed from the Plugin Installer.

When clicked on Plugin Installer, the link directs to a page:
Where the text goes as follows:
This page does not exist yet. Use the form below to create it.


Could you please check it out...
thumbnail
Corné Aussems, geändert vor 13 Jahren.

RE: How to Configure Mail Portlet

Liferay Legend Beiträge: 1313 Beitrittsdatum: 03.10.06 Neueste Beiträge
Song Ching Khoo, geändert vor 13 Jahren.

RE: How to Configure Mail Portlet

New Member Beiträge: 2 Beitrittsdatum: 06.09.10 Neueste Beiträge
HI, i am new to liferay.

I installed liferay 6 in my pc and now configuring the mail portlet.

I am able to configure the mail portlet for gmail and it is able to read, send, reply, and forward email.

But i am not able to create custom email for yahoo mail, hotmail, or my company mail.

I saw a page that we can find and configure it in ROOT.xml (TOMCAT_HOME/conf/Catalina/localhost/ROOR.XML)with the following:
<<Resource
name:"mail/MailSession"
auth=....
mail.tansport.protocol="smtp"
/>


but in my tomcat, the ROOT.xml is only:

<Context path="" crossContext="true">

<!-- JAAS -->

<!--<Realm
className="org.apache.catalina.realm.JAASRealm"
appName="PortalRealm"
userClassNames="com.liferay.portal.kernel.security.jaas.PortalPrincipal"
roleClassNames="com.liferay.portal.kernel.security.jaas.PortalRole"
/>-->

<!--
Uncomment the following to disable persistent sessions across reboots.
-->

<!--<Manager pathname="" />-->

<!--
Uncomment the following to not use sessions. See the property
"session.disabled" in portal.properties.
-->

<!--<Manager className="com.liferay.support.tomcat.session.SessionLessManagerBase" />-->
</Context>



Is it the mail portlet is only supported for incoming IMAP server?
Anybody configure it for hotmail or yahoo??
thumbnail
Corné Aussems, geändert vor 13 Jahren.

RE: How to Configure Mail Portlet

Liferay Legend Beiträge: 1313 Beitrittsdatum: 03.10.06 Neueste Beiträge
These are the default settings from the portal.properties

you may override them by introducing a portal-ext.properties on your classpath ie /ROOT/classes/portal-ext.properties

##
## Mail
##

    #
    # Set the JNDI name to lookup the Java Mail session. If none is set, then
    # the portal will attempt to create the Java Mail session based on the
    # properties prefixed with "mail.session.".
    #
    #mail.session.jndi.name=mail/MailSession

    #
    # Set the properties used to create the Java Mail session. The property
    # prefix "mail.session." will be removed before it is used to create the
    # session object. These properties will only be read if the property
    # "mail.session.jndi.name" is not set.
    #
    mail.session.mail.imap.host=localhost
    mail.session.mail.pop3.host=localhost
    #mail.session.mail.smtp.auth=true
    mail.session.mail.smtp.host=localhost
    #mail.session.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
    #mail.session.mail.smtp.socketFactory.fallback=false
    #mail.session.mail.smtp.socketFactory.port=465
    #mail.session.mail.smtp.starttls.enable=true
    #mail.session.mail.smtp.password=
    #mail.session.mail.smtp.port=465
    #mail.session.mail.smtp.user=
    mail.session.mail.store.protocol=localhost
    mail.session.mail.transport.protocol=smtp


BTW portal-ext.properties can be domain specific;
furthermore since LR 6 some of these settings can be set through a webinterface in the "Control Panel" >> Server Administration >> Mail
thumbnail
Corné Aussems, geändert vor 13 Jahren.

RE: How to Configure Mail Portlet

Liferay Legend Beiträge: 1313 Beitrittsdatum: 03.10.06 Neueste Beiträge
i have not a lot of time right now but these portlets settings make things clear;


portlet-ext.properties

include-and-override=portlet-ext.properties

disk.root.dir=${resource.repositories.root}/mail

javamail.debug=false

messages.to.prefetch=25
messages.per.page=25

synchronize.interval.minutes=3

preconfigured.mail.accounts = \
{"accounts" : [ \
{"title":"Add a Mail Account","username":"","password":"","emailAddress":"","emailAddressSameAsUsername":false,"mailInHostName":"","mailInPort":"","mailInSecure":false,"mailOutHostName":"","mailOutPort":"","mailOutSecure":false,"description":"","preconfigured":false}, \
{"title":"Add a Gmail Account","username":"@gmail.com","password":"","emailAddress":"@gmail.com","emailAddressSameAsUsername":true,"mailInHostName":"imap.gmail.com","mailInPort":"993","mailInSecure":true,"mailOutHostName":"smtp.gmail.com","mailOutPort":"465","mailOutSecure":true,"description":"IMAP must be enabled in your Gmail account settings for this to work.","preconfigured":true} \
] \
}
SC Khoo, geändert vor 13 Jahren.

RE: How to Configure Mail Portlet

New Member Beiträge: 2 Beitrittsdatum: 06.09.10 Neueste Beiträge
Hi,
In Vaadin mail portlet,
I wish to add a custom email account for hotmail by the following setting:
Email address: myusername@hotmail.com
Login: myusername@hotmail.com
password: ******
Incoming Imap server: pop3.live.com
Incoming port: 995
Checked Use Secure Incoming Connection
Outgoing SMTP Server:
Outgoing Port:25
Checked Use Secure Outgoing Connection

But it CAN'T add the hotmail account.

I do it for the another mail portlet which bundled in liferay 6 with the same setting as above, it failed to add the custom account too...

but the above setting is work if configured it in MS outlook 2007.

Is it anybody added hotmail account in Vaadin portlet before?? Can teach me how to do it?
Thanks....
Jack Tan, geändert vor 13 Jahren.

RE: How to Configure Mail Portlet

New Member Beiträge: 4 Beitrittsdatum: 14.09.10 Neueste Beiträge
hi,
I have the same problem too..

In liferay 6 mail portlet, it is supported for multiple mail accounts,
for gmail it is configured defaultly thru IMAP.
but for other mails like yahoo, hotmail...how to configure it?

i cant able to configure the mail portlet for yahoo, hotmail, etc...
Mo Farouq, geändert vor 13 Jahren.

RE: How to Configure Mail Portlet

New Member Beiträge: 6 Beitrittsdatum: 19.03.11 Neueste Beiträge
Sorry for bumping an old thread but I'm having the same problem as well, cannot configure the Mail portlet for any other accounts other than Gmail even though I'm sure I have the incomming & outgoing settings correctly.

Can any Liferay guru take the time to point out where we noobs are failing? Thanks,
Mo Farouq, geändert vor 13 Jahren.

RE: How to Configure Mail Portlet

New Member Beiträge: 6 Beitrittsdatum: 19.03.11 Neueste Beiträge
Mo Farouq:
Sorry for bumping an old thread but I'm having the same problem as well, cannot configure the Mail portlet for any other accounts other than Gmail even though I'm sure I have the incomming & outgoing settings correctly.

Can any Liferay guru take the time to point out where we noobs are failing? Thanks,


I have resolved this issue by modifying the ROOT.xml file under:
[TOMCAT-HOME]\conf\Catalina\localhost\ROOT.xml


<!-- Mail -->
<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="imap.gmail.com"
mail.imap.port="993"
mail.pop.host="pop.gmail.com"
mail.pop.port="995"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
mail.smtp.host="smtp.gmail.com"
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.starttls.enable="true"
mail.smtp.user="admin@some-domain.com"
password="admin1234"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>

The Mail portlet should work fine.
thumbnail
Mani kandan, geändert vor 12 Jahren.

RE: How to Configure Mail Portlet

Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
Mo Farouq:
Mo Farouq:
Sorry for bumping an old thread but I'm having the same problem as well, cannot configure the Mail portlet for any other accounts other than Gmail even though I'm sure I have the incomming & outgoing settings correctly.

Can any Liferay guru take the time to point out where we noobs are failing? Thanks,


I have resolved this issue by modifying the ROOT.xml file under:
[TOMCAT-HOME]\conf\Catalina\localhost\ROOT.xml


<!-- Mail -->
<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="imap.gmail.com"
mail.imap.port="993"
mail.pop.host="pop.gmail.com"
mail.pop.port="995"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
mail.smtp.host="smtp.gmail.com"
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.starttls.enable="true"
mail.smtp.user="admin@some-domain.com"
password="admin1234"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>

The Mail portlet should work fine.


You gave for gmail setting, can you post for yahoo, hotmail etc.,
thumbnail
Thiago Leão Moreira, geändert vor 12 Jahren.

RE: How to Configure Mail Portlet

Liferay Legend Beiträge: 1449 Beitrittsdatum: 10.10.07 Neueste Beiträge
Hey Mani,

Those information are available on Yahoo and Hotmail websites. You should grab them from they support pages.
thumbnail
Mani kandan, geändert vor 12 Jahren.

RE: How to Configure Mail Portlet

Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
Thiago Leão Moreira:
Hey Mani,

Those information are available on Yahoo and Hotmail websites. You should grab them from they support pages.


How can I grab those pages i don't know how. Could you pls tel me how to do it?
thumbnail
Mani kandan, geändert vor 12 Jahren.

RE: How to Configure Mail Portlet

Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
Any help?emoticon
thumbnail
MANOVINAYAK AYYAPPAN, geändert vor 12 Jahren.

RE: How to Configure Mail Portlet

Regular Member Beiträge: 131 Beitrittsdatum: 13.06.11 Neueste Beiträge
Hi All,

I have configured gmail account in the Mail Portlet.

The portlet is kind of fine with sending mail feature.

The Challenge:
I would like to know, how I can send email to multiple email IDs.

When I try to separate email IDs by ; or , it shows up the error message "Please make sure the following address is properly formatted."

My Query:
I would like to know how we can send emails to multiple email IDs.

Regards,
Mano
shrikanth k shrikanth, geändert vor 9 Jahren.

RE: How to Configure Mail Portlet

Regular Member Beiträge: 118 Beitrittsdatum: 11.12.13 Neueste Beiträge
Hello frds,
Iam using Liferay 6.2 ,
Sorry for posting in old thread but I'm also facing the same problem, cannot configure the Mail portlet for any other accounts other than Gmail.But i am not able to create custom email for yahoo mail, hotmail.I want to create Yahoo Mail in Custom Mail Account. Can u please send the steps how to do it.
Iam using below configuration for yahoo Mail.

Incoming Settings
Server - pop.mail.yahoo.com
Port - 995
Outgoing Settings

Server - smtp.mail.yahoo.com
Port - 465
Even i attached the screen shot.

Regards
Shrikanth
Haythem Benizid, geändert vor 9 Jahren.

RE: How to Configure Mail Portlet

New Member Beiträge: 7 Beitrittsdatum: 03.08.14 Neueste Beiträge
hello,
I'am using also Liferay 6.2, and I'm also facing the same problem, cannot configure the Mail portlet for any other accounts
it is possible that we must add a special configuration on liferay !!!???
plz help !!!