Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Kiran Kumar Boyini
how to provide Organization Specific mail configurations in liferay 5.1.2
April 14, 2012 12:10 AM
Answer

Kiran Kumar Boyini

Rank: Expert

Posts: 286

Join Date: June 2, 2011

Recent Posts

Hi All,

I am new to life ray.I have one requirement I want to provide the Organization Specific mail configurations for each organization.

Right now we are using global one by providing the configuration in root.xml file as follows.

<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="localhost"
mail.pop3.host="localhost"
mail.smtp.host="localhost"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
/>

Now My requirement is how I can provide the organization specific mail configuration using liferay 5.1.2

Give me some suggestions how to achieve this requirement.

Thanks & Regards

Kiran Kumar Boyini.
Jelmer Kuperus
RE: how to provide Organization Specific mail configurations in liferay 5.1
April 14, 2012 6:27 AM
Answer

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1192

Join Date: March 10, 2010

Recent Posts

You mean for liferay organizations ? There is no easy way to do this. From what i can tell the only option you have is finding piece of code in liferay that places a MailMessage on the message queue and setting changing that to set an smtpAccount on the message that belongs to your organization. Which would be a thoroughly insane thing to do.

You cannot fix it in a centralized spot because when the message arrives at the MailMessageListener it does not know for which organization the message is being sent
Kiran Kumar Boyini
RE: how to provide Organization Specific mail configurations in liferay 5.1
April 15, 2012 10:18 PM
Answer

Kiran Kumar Boyini

Rank: Expert

Posts: 286

Join Date: June 2, 2011

Recent Posts

Thank you,

My requirement is we have to provide the specific mail configuration for every organization like(colleges)

by using the existed functionality of liferay 5.1.2.

Tell me how can I achieve this requirement.


Thanks & Regards,

KiranKumar Boyini.
Kiran Kumar Boyini
RE: how to provide Organization Specific mail configurations in liferay 5.1
April 24, 2012 11:16 PM
Answer

Kiran Kumar Boyini

Rank: Expert

Posts: 286

Join Date: June 2, 2011

Recent Posts

Hi Friends,

Please reply to my requirement as I specified above.

Thanks & Regards

Kiran Kumar Boyini.
Roshan Qureshi
RE: how to provide Organization Specific mail configurations in liferay 5.1
April 25, 2012 12:42 AM
Answer

Roshan Qureshi

Rank: Regular Member

Posts: 144

Join Date: August 24, 2010

Recent Posts

Hi Kiran,

Can you provide more details about your requirement.
What I understood is :
You have many colleges(organization) in your portal and for each you want to use different mail settings. Right?
Kiran Kumar Boyini
RE: how to provide Organization Specific mail configurations in liferay 5.1
April 27, 2012 12:20 AM
Answer

Kiran Kumar Boyini

Rank: Expert

Posts: 286

Join Date: June 2, 2011

Recent Posts

Thank you,

What you understand is correct.

My Requirement is i have to provide the specific mail configuration setting for every organization(colleges) using one portlet.

Right now we are using global one by providing the configuration in root.xml file as follows.

<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="localhost"
mail.pop3.host="localhost"
mail.smtp.host="localhost"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
/>

But do not know how the liferay people doing the above task as well as I need suggestion how can I achieve this requirement in liferay 5.1.2.

Thanks & Regards

Kiran Kumar Boyini.
Kiran Kumar Boyini
RE: how to provide Organization Specific mail configurations in liferay 5.1
May 1, 2012 10:25 PM
Answer

Kiran Kumar Boyini

Rank: Expert

Posts: 286

Join Date: June 2, 2011

Recent Posts

Hi All,


Please send the reply to my requirement as I mentioned in the above.

Thanks and Regards

Kiran Kumar Boyini.