掲示板
Mail is not working with liferay
13年前 に Amit Singh によって更新されました。
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.
13年前 に Apoorva Prakash によって更新されました。
RE: Mail is not working with liferay
Liferay Master 投稿: 658 参加年月日: 10/06/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...
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...
13年前 に Amit Singh によって更新されました。
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.
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.
13年前 に Manish Kumar Gupta によって更新されました。
RE: Mail is not working with liferay
Liferay Master 投稿: 535 参加年月日: 08/05/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?
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?
13年前 に Amit Singh によって更新されました。
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.
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.
13年前 に Manish Kumar Gupta によって更新されました。
RE: Mail is not working with liferay
Liferay Master 投稿: 535 参加年月日: 08/05/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?
Also, it may be that portal is not able to detect your ext properties file. Where are you copying portal-ext.properties?
13年前 に Amit Singh によって更新されました。
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
portal.properties dir = Root\Web-Inf\Classes\portal.properties
添付ファイル:
13年前 に Manish Kumar Gupta によって更新されました。
RE: Mail is not working with liferay
Liferay Master 投稿: 535 参加年月日: 08/05/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?
13年前 に Amit Singh によって更新されました。
RE: Mail is not working with liferay
Junior Member 投稿: 71 参加年月日: 10/10/12 最新の投稿
i removed smtp, user and pass.
13年前 に Manish Kumar Gupta によって更新されました。
RE: Mail is not working with liferay
Liferay Master 投稿: 535 参加年月日: 08/05/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.
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.
13年前 に Amit Singh によって更新されました。
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.
13年前 に Christopher Lui によって更新されました。
RE: Mail is not working with liferay
Junior Member 投稿: 39 参加年月日: 10/03/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
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
13年前 に Amit Singh によって更新されました。
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.
i tried with this also but mail service is not working.
13年前 に raghu batchu によって更新されました。
RE: Mail is not working with liferay
New Member 投稿: 9 参加年月日: 09/08/23 最新の投稿
Hi Amith
verify your outgoing smtp server ip and outgoing port number under Control panel --> Server administrator --> mail
Thanks
Raghu
verify your outgoing smtp server ip and outgoing port number under Control panel --> Server administrator --> mail
Thanks
Raghu
13年前 に Gaurav Jain によって更新されました。
RE: Mail is not working with liferay
Regular Member 投稿: 145 参加年月日: 11/01/31 最新の投稿
Hey Amit,
have you resolved out your problems with email?
have you resolved out your problems with email?
13年前 に Amit Singh によって更新されました。
RE: Mail is not working with liferay
Junior Member 投稿: 71 参加年月日: 10/10/12 最新の投稿
Hi Gaurav,
I resolved my issue. Are you facing the problem????
I resolved my issue. Are you facing the problem????
11年前 に Eldho Issac によって更新されました。
RE: Mail is not working with liferay
New Member 投稿: 4 参加年月日: 12/11/28 最新の投稿
Hi Amit
plz share how u resolved this problem.
Thanks
plz share how u resolved this problem.
Thanks