留言板
Mail is not working with liferay
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,修改在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...
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...
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.
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?
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?
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.
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?
Also, it may be that portal is not able to detect your ext properties file. Where are you copying portal-ext.properties?
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
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?
i removed smtp, user and pass.
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.
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.
i verified portal.properties. it's setting all the configuration. but still, issue not resolved.
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
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
Hi Christopher,
i tried with this also but mail service is not working.
i tried with this also but mail service is not working.
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
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?
have you resolved out your problems with email?