留言板

Mail is not working with liferay

thumbnail
Amit Singh,修改在13 年前。

Mail is not working with liferay

Junior Member 帖子: 71 加入日期: 10-10-12 最近的帖子
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.
thumbnail
Apoorva Prakash,修改在13 年前。

RE: Mail is not working with liferay

Liferay Master 帖子: 658 加入日期: 10-6-15 最近的帖子
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...
thumbnail
Amit Singh,修改在13 年前。

RE: Mail is not working with liferay

Junior Member 帖子: 71 加入日期: 10-10-12 最近的帖子
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.
thumbnail
Manish Kumar Gupta,修改在13 年前。

RE: Mail is not working with liferay

Liferay Master 帖子: 535 加入日期: 08-5-16 最近的帖子
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?
thumbnail
Amit Singh,修改在13 年前。

RE: Mail is not working with liferay

Junior Member 帖子: 71 加入日期: 10-10-12 最近的帖子
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.
thumbnail
Manish Kumar Gupta,修改在13 年前。

RE: Mail is not working with liferay

Liferay Master 帖子: 535 加入日期: 08-5-16 最近的帖子
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?
thumbnail
Amit Singh,修改在13 年前。

RE: Mail is not working with liferay

Junior Member 帖子: 71 加入日期: 10-10-12 最近的帖子
I attached portal.properties. Please have a look.
portal.properties dir = Root\Web-Inf\Classes\portal.properties
thumbnail
Manish Kumar Gupta,修改在13 年前。

RE: Mail is not working with liferay

Liferay Master 帖子: 535 加入日期: 08-5-16 最近的帖子
Is this the actual portal-ext.properties or you have removed values for mail.session.mail.smtp.host, mail.session.mail.smtp.user etc?
thumbnail
Amit Singh,修改在13 年前。

RE: Mail is not working with liferay

Junior Member 帖子: 71 加入日期: 10-10-12 最近的帖子
i removed smtp, user and pass.
thumbnail
Manish Kumar Gupta,修改在13 年前。

RE: Mail is not working with liferay

Liferay Master 帖子: 535 加入日期: 08-5-16 最近的帖子
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.
thumbnail
Amit Singh,修改在13 年前。

RE: Mail is not working with liferay

Junior Member 帖子: 71 加入日期: 10-10-12 最近的帖子
i verified portal.properties. it's setting all the configuration. but still, issue not resolved.
thumbnail
Christopher Lui,修改在13 年前。

RE: Mail is not working with liferay

Junior Member 帖子: 39 加入日期: 10-3-22 最近的帖子
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
thumbnail
Amit Singh,修改在13 年前。

RE: Mail is not working with liferay

Junior Member 帖子: 71 加入日期: 10-10-12 最近的帖子
Hi Christopher,

i tried with this also but mail service is not working.
raghu batchu,修改在13 年前。

RE: Mail is not working with liferay

New Member 帖子: 9 加入日期: 09-8-23 最近的帖子
Hi Amith

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

Thanks
Raghu
thumbnail
Gaurav Jain,修改在13 年前。

RE: Mail is not working with liferay

Regular Member 帖子: 145 加入日期: 11-1-31 最近的帖子
Hey Amit,

have you resolved out your problems with email?
thumbnail
Amit Singh,修改在13 年前。

RE: Mail is not working with liferay

Junior Member 帖子: 71 加入日期: 10-10-12 最近的帖子
Hi Gaurav,

I resolved my issue. Are you facing the problem????
Eldho Issac,修改在11 年前。

RE: Mail is not working with liferay

New Member 帖子: 4 加入日期: 12-11-28 最近的帖子
Hi Amit
plz share how u resolved this problem.

Thanks