Foros de discusión

Mail is not working with liferay

thumbnail
Amit Singh, modificado hace 13 años.

Mail is not working with liferay

Junior Member Mensajes: 71 Fecha de incorporación: 12/10/10 Mensajes recientes
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, modificado hace 13 años.

RE: Mail is not working with liferay

Liferay Master Mensajes: 658 Fecha de incorporación: 15/06/10 Mensajes recientes
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, modificado hace 13 años.

RE: Mail is not working with liferay

Junior Member Mensajes: 71 Fecha de incorporación: 12/10/10 Mensajes recientes
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, modificado hace 13 años.

RE: Mail is not working with liferay

Liferay Master Mensajes: 535 Fecha de incorporación: 16/05/08 Mensajes recientes
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, modificado hace 13 años.

RE: Mail is not working with liferay

Junior Member Mensajes: 71 Fecha de incorporación: 12/10/10 Mensajes recientes
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, modificado hace 13 años.

RE: Mail is not working with liferay

Liferay Master Mensajes: 535 Fecha de incorporación: 16/05/08 Mensajes recientes
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, modificado hace 13 años.

RE: Mail is not working with liferay

Junior Member Mensajes: 71 Fecha de incorporación: 12/10/10 Mensajes recientes
I attached portal.properties. Please have a look.
portal.properties dir = Root\Web-Inf\Classes\portal.properties
thumbnail
Manish Kumar Gupta, modificado hace 13 años.

RE: Mail is not working with liferay

Liferay Master Mensajes: 535 Fecha de incorporación: 16/05/08 Mensajes recientes
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, modificado hace 13 años.

RE: Mail is not working with liferay

Junior Member Mensajes: 71 Fecha de incorporación: 12/10/10 Mensajes recientes
i removed smtp, user and pass.
thumbnail
Manish Kumar Gupta, modificado hace 13 años.

RE: Mail is not working with liferay

Liferay Master Mensajes: 535 Fecha de incorporación: 16/05/08 Mensajes recientes
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, modificado hace 13 años.

RE: Mail is not working with liferay

Junior Member Mensajes: 71 Fecha de incorporación: 12/10/10 Mensajes recientes
i verified portal.properties. it's setting all the configuration. but still, issue not resolved.
thumbnail
Christopher Lui, modificado hace 13 años.

RE: Mail is not working with liferay

Junior Member Mensajes: 39 Fecha de incorporación: 22/03/10 Mensajes recientes
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, modificado hace 13 años.

RE: Mail is not working with liferay

Junior Member Mensajes: 71 Fecha de incorporación: 12/10/10 Mensajes recientes
Hi Christopher,

i tried with this also but mail service is not working.
raghu batchu, modificado hace 13 años.

RE: Mail is not working with liferay

New Member Mensajes: 9 Fecha de incorporación: 23/08/09 Mensajes recientes
Hi Amith

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

Thanks
Raghu
thumbnail
Gaurav Jain, modificado hace 13 años.

RE: Mail is not working with liferay

Regular Member Mensajes: 145 Fecha de incorporación: 31/01/11 Mensajes recientes
Hey Amit,

have you resolved out your problems with email?
thumbnail
Amit Singh, modificado hace 13 años.

RE: Mail is not working with liferay

Junior Member Mensajes: 71 Fecha de incorporación: 12/10/10 Mensajes recientes
Hi Gaurav,

I resolved my issue. Are you facing the problem????
Eldho Issac, modificado hace 11 años.

RE: Mail is not working with liferay

New Member Mensajes: 4 Fecha de incorporación: 28/11/12 Mensajes recientes
Hi Amit
plz share how u resolved this problem.

Thanks