Fórumok

Nyitólap » Liferay Portal » English » 3. Development

Kombinált nézet Egyszerű nézet Fa-nézet
Szálak [ Előző | Következő ]
toggle
Muhammad Zakir
How to Configure Mail Portlet
2010. augusztus 20. 22:08
Válasz

Muhammad Zakir

Rangsorolás: New Member

Hozzászólások: 4

Csatlakozás dátuma: 2009. november 16.

Legújabb hozzászólások


Hi,
I use:
  • Liferay 5.2.3 - Bundled with Tomcat6
  • Ubuntu 9.10
Question: I want to use MAIL PORTLET in my website.
Could anybody please let me know:
  • How to configure the MAIL PORTLET?
  • What all files to be modified?
  • What all deployments to be done?

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.
Corné Aussems
RE: How to Configure Mail Portlet
2010. augusztus 21. 9:40
Válasz

Corné Aussems

Rangsorolás: Liferay Legend

Hozzászólások: 1181

Csatlakozás dátuma: 2006. október 3.

Legújabb hozzászólások

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
RE: How to Configure Mail Portlet
2010. augusztus 23. 22:32
Válasz

Muhammad Zakir

Rangsorolás: New Member

Hozzászólások: 4

Csatlakozás dátuma: 2009. november 16.

Legújabb hozzászólások

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...
Corné Aussems
RE: How to Configure Mail Portlet
2010. augusztus 24. 3:05
Válasz

Corné Aussems

Rangsorolás: Liferay Legend

Hozzászólások: 1181

Csatlakozás dátuma: 2006. október 3.

Legújabb hozzászólások

Download from the website
http://www.liferay.com/downloads/liferay-portal/official-plugins/-/software_catalog/products/1176647?_98_redirect=/downloads/liferay-portal/official-plugins/-/software_catalog/products%3F_98_tabs1TabsScroll%3D%26_98_keywords%3Dmail%26_98_type%3D

Install it "Control Panel" >> "Install Plugins" >> Install More >> Upload File

or drop it in your deploy folder
S C
RE: How to Configure Mail Portlet
2010. szeptember 6. 3:33
Válasz

S C

Rangsorolás: New Member

Hozzászólások: 3

Csatlakozás dátuma: 2010. szeptember 6.

Legújabb hozzászólások

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??
Corné Aussems
RE: How to Configure Mail Portlet
2010. szeptember 6. 5:36
Válasz

Corné Aussems

Rangsorolás: Liferay Legend

Hozzászólások: 1181

Csatlakozás dátuma: 2006. október 3.

Legújabb hozzászólások

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

 1##
 2## Mail
 3##
 4
 5    #
 6    # Set the JNDI name to lookup the Java Mail session. If none is set, then
 7    # the portal will attempt to create the Java Mail session based on the
 8    # properties prefixed with "mail.session.".
 9    #
10    #mail.session.jndi.name=mail/MailSession
11
12    #
13    # Set the properties used to create the Java Mail session. The property
14    # prefix "mail.session." will be removed before it is used to create the
15    # session object. These properties will only be read if the property
16    # "mail.session.jndi.name" is not set.
17    #
18    mail.session.mail.imap.host=localhost
19    mail.session.mail.pop3.host=localhost
20    #mail.session.mail.smtp.auth=true
21    mail.session.mail.smtp.host=localhost
22    #mail.session.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
23    #mail.session.mail.smtp.socketFactory.fallback=false
24    #mail.session.mail.smtp.socketFactory.port=465
25    #mail.session.mail.smtp.starttls.enable=true
26    #mail.session.mail.smtp.password=
27    #mail.session.mail.smtp.port=465
28    #mail.session.mail.smtp.user=
29    mail.session.mail.store.protocol=localhost
30    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
Corné Aussems
RE: How to Configure Mail Portlet
2010. szeptember 6. 22:39
Válasz

Corné Aussems

Rangsorolás: Liferay Legend

Hozzászólások: 1181

Csatlakozás dátuma: 2006. október 3.

Legújabb hozzászólások

i have not a lot of time right now but these portlets settings make things clear;


portlet-ext.properties
 1
 2include-and-override=portlet-ext.properties
 3
 4disk.root.dir=${resource.repositories.root}/mail
 5
 6javamail.debug=false
 7
 8messages.to.prefetch=25
 9messages.per.page=25
10
11synchronize.interval.minutes=3
12
13preconfigured.mail.accounts = \
14{"accounts" : [ \
15{"title":"Add a Mail Account","username":"","password":"","emailAddress":"","emailAddressSameAsUsername":false,"mailInHostName":"","mailInPort":"","mailInSecure":false,"mailOutHostName":"","mailOutPort":"","mailOutSecure":false,"description":"","preconfigured":false}, \
16{"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} \
17] \
18}
S C
RE: How to Configure Mail Portlet
2010. szeptember 8. 19:54
Válasz

S C

Rangsorolás: New Member

Hozzászólások: 3

Csatlakozás dátuma: 2010. szeptember 6.

Legújabb hozzászólások

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
RE: How to Configure Mail Portlet
2010. szeptember 13. 19:48
Válasz

Jack Tan

Rangsorolás: New Member

Hozzászólások: 4

Csatlakozás dátuma: 2010. szeptember 13.

Legújabb hozzászólások

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
RE: How to Configure Mail Portlet
2011. március 22. 17:36
Válasz

Mo Farouq

Rangsorolás: New Member

Hozzászólások: 6

Csatlakozás dátuma: 2011. március 19.

Legújabb hozzászólások

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
RE: How to Configure Mail Portlet
2011. március 23. 4:16
Válasz

Mo Farouq

Rangsorolás: New Member

Hozzászólások: 6

Csatlakozás dátuma: 2011. március 19.

Legújabb hozzászólások

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.
Mani kandan
RE: How to Configure Mail Portlet
2011. június 20. 22:30
Válasz

Mani kandan

Rangsorolás: Expert

Hozzászólások: 490

Csatlakozás dátuma: 2010. szeptember 15.

Legújabb hozzászólások

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.,
Thiago Leão Moreira
RE: How to Configure Mail Portlet
2011. június 21. 14:16
Válasz

Thiago Leão Moreira

LIFERAY STAFF

Rangsorolás: Liferay Legend

Hozzászólások: 1190

Csatlakozás dátuma: 2007. október 10.

Legújabb hozzászólások

Hey Mani,

Those information are available on Yahoo and Hotmail websites. You should grab them from they support pages.
Mani kandan
RE: How to Configure Mail Portlet
2011. június 22. 4:39
Válasz

Mani kandan

Rangsorolás: Expert

Hozzászólások: 490

Csatlakozás dátuma: 2010. szeptember 15.

Legújabb hozzászólások

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?
Mani kandan
RE: How to Configure Mail Portlet
2011. szeptember 6. 4:09
Válasz

Mani kandan

Rangsorolás: Expert

Hozzászólások: 490

Csatlakozás dátuma: 2010. szeptember 15.

Legújabb hozzászólások

Any help?emoticon
MANOVINAYAK AYYAPPAN
RE: How to Configure Mail Portlet
2011. december 21. 18:40
Válasz

MANOVINAYAK AYYAPPAN

Rangsorolás: Regular Member

Hozzászólások: 111

Csatlakozás dátuma: 2011. június 13.

Legújabb hozzászólások

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