Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Amit Kumar Singh
Mail is not working with liferay
26. Dezember 2010 06:39
Antwort

Amit Kumar Singh

Rang: Junior Member

Nachrichten: 71

Eintrittsdatum: 11. Oktober 2010

Neue Beiträge

I tried to setup the mail configuration from control panel but mail functionality is not working with liferay. I configured Root.xml and tried with gmail and also own server but still mail server is not working. I tried with portal.properties to set smtp configuration but still there is issue with liferay to sending mail. Let me know if any one have idea regarding this issue. thanks in advance to all liferay users.
Apoorva Prakash
RE: Mail is not working with liferay
26. Dezember 2010 08:49
Antwort

Apoorva Prakash

Rang: Liferay Master

Nachrichten: 659

Eintrittsdatum: 15. Juni 2010

Neue Beiträge

Hello Amit,
I've got email working on my project stack with SMTP settings in portal-ext.properties file... Hope you are doing some tiny mistake... But the things you are mentioning are not explaining your problem clearly... Please explain in detail, and mention code snippet if needed...

Thanks and Regards...
Amit Kumar Singh
RE: Mail is not working with liferay
28. Dezember 2010 04:43
Antwort

Amit Kumar Singh

Rang: Junior Member

Nachrichten: 71

Eintrittsdatum: 11. Oktober 2010

Neue Beiträge

Hi Apoorva,

Thanks for your response. Below, i mentioned code of bunch for portal.properties & Root.xml that i configured in my liferay.

portal.properties

mail.session.mail.transport.protocol=smtp
mail.session.mail.smtp.host=smtphost
mail.session.mail.smtp.password=pass
mail.session.mail.smtp.user=user
mail.session.mail.smtp.port=25
mail.session.mail.smtp.auth=true

root.xml

<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.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=""
password=""
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>

i tried both example. so please let me know where i am doing wrong.
Manish Kumar Gupta
RE: Mail is not working with liferay
28. Dezember 2010 07:29
Antwort

Manish Kumar Gupta

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 535

Eintrittsdatum: 15. Mai 2008

Neue Beiträge

Hey Amit,

When you are configuring mail using root.xml, you need to add mail.session.jndi.name=mail/MailSession in your portal-ext.properties. Have you done that?
Amit Kumar Singh
RE: Mail is not working with liferay
28. Dezember 2010 21:24
Antwort

Amit Kumar Singh

Rang: Junior Member

Nachrichten: 71

Eintrittsdatum: 11. Oktober 2010

Neue Beiträge

HI Manish,

I tried to add mail.session.jndi.name=mail/MailSession in portal.properties. But still, i am not able to send mail. While testing for forget password, it's showing me that password sent successfully but user is not getting any mail. Please help me to resolve this issue.

Thanks.
Manish Kumar Gupta
RE: Mail is not working with liferay
28. Dezember 2010 21:46
Antwort

Manish Kumar Gupta

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 535

Eintrittsdatum: 15. Mai 2008

Neue Beiträge

Can you attach you portal-ext.properties? You can remove your mail password but I was other details as it is.

Also, it may be that portal is not able to detect your ext properties file. Where are you copying portal-ext.properties?
Amit Kumar Singh
RE: Mail is not working with liferay
28. Dezember 2010 22:00
Antwort

Amit Kumar Singh

Rang: Junior Member

Nachrichten: 71

Eintrittsdatum: 11. Oktober 2010

Neue Beiträge

I attached portal.properties. Please have a look.
portal.properties dir = Root\Web-Inf\Classes\portal.properties
Anhänge: portal-ext.properties (0,4k)
Manish Kumar Gupta
RE: Mail is not working with liferay
28. Dezember 2010 21:58
Antwort

Manish Kumar Gupta

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 535

Eintrittsdatum: 15. Mai 2008

Neue Beiträge

Is this the actual portal-ext.properties or you have removed values for mail.session.mail.smtp.host, mail.session.mail.smtp.user etc?
Amit Kumar Singh
RE: Mail is not working with liferay
28. Dezember 2010 22:00
Antwort

Amit Kumar Singh

Rang: Junior Member

Nachrichten: 71

Eintrittsdatum: 11. Oktober 2010

Neue Beiträge

i removed smtp, user and pass.
Manish Kumar Gupta
RE: Mail is not working with liferay
28. Dezember 2010 22:14
Antwort

Manish Kumar Gupta

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 535

Eintrittsdatum: 15. Mai 2008

Neue Beiträge

My last 2 suggestions -

1. Try after removing mail resource entry from root.xml and property mail.session.jndi.name=mail/MailSession from portal-ext.properties.

2. Make sure that your portal-ext.properties is being picked by the portal. To verify this, go to control panel -> server administration -> properties -> portal properties.
Amit Kumar Singh
RE: Mail is not working with liferay
28. Dezember 2010 22:38
Antwort

Amit Kumar Singh

Rang: Junior Member

Nachrichten: 71

Eintrittsdatum: 11. Oktober 2010

Neue Beiträge

i verified portal.properties. it's setting all the configuration. but still, issue not resolved.
Christopher Lui
RE: Mail is not working with liferay
29. Dezember 2010 11:11
Antwort

Christopher Lui

LIFERAY STAFF

Rang: Junior Member

Nachrichten: 38

Eintrittsdatum: 22. März 2010

Neue Beiträge

Hi Amit,

Have you seen this blog? http://www.liferay.com/web/craig.kaneko/blog/-/blogs/243468/maximized

It is an easy way to setup Gmail.

Thanks,
Chris
Amit Kumar Singh
RE: Mail is not working with liferay
30. Dezember 2010 22:35
Antwort

Amit Kumar Singh

Rang: Junior Member

Nachrichten: 71

Eintrittsdatum: 11. Oktober 2010

Neue Beiträge

Hi Christopher,

i tried with this also but mail service is not working.
raghu batchu
RE: Mail is not working with liferay
31. Dezember 2010 09:29
Antwort

raghu batchu

Rang: New Member

Nachrichten: 9

Eintrittsdatum: 23. August 2009

Neue Beiträge

Hi Amith

verify your outgoing smtp server ip and outgoing port number under Control panel --> Server administrator --> mail

Thanks
Raghu
Gaurav Jain
RE: Mail is not working with liferay
9. Februar 2011 23:31
Antwort

Gaurav Jain

Rang: Regular Member

Nachrichten: 146

Eintrittsdatum: 31. Januar 2011

Neue Beiträge

Hey Amit,

have you resolved out your problems with email?
Amit Kumar Singh
RE: Mail is not working with liferay
10. Februar 2011 19:14
Antwort

Amit Kumar Singh

Rang: Junior Member

Nachrichten: 71

Eintrittsdatum: 11. Oktober 2010

Neue Beiträge

Hi Gaurav,

I resolved my issue. Are you facing the problem????
Eldho Issac
RE: Mail is not working with liferay
20. Dezember 2012 02:44
Antwort

Eldho Issac

Rang: New Member

Nachrichten: 4

Eintrittsdatum: 28. November 2012

Neue Beiträge

Hi Amit
plz share how u resolved this problem.

Thanks