Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Akram MONCER
Configure Email server for liferay
20 de noviembre de 2012 4:53
Respuesta

Akram MONCER

Ranking: Regular Member

Mensajes: 106

Fecha de incorporación: 25 de septiembre de 2012

Mensajes recientes

hello
i'm trying to configure the email server (just to send mail) use put thise config on the portal-ext.properties


mail.session.mail.store.protocol=imap
mail.session.mail.transport.protocol=smtp
#smtp properties
mail.session.mail.smtp.host=smtp.gmail.com
mail.session.mail.smtp.password=pass
mail.session.mail.smtp.user=user@gmail.com

mail.session.mail.smtp.port=587
mail.session.mail.smtp.auth=true
mail.session.mail.smtp.starttls.enable=true
mail.session.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
mail.session.mail.pop3.host=localhost


i try the 587 and 465 port but when i try to send an email for example like in the create account, i get this warn :

11:36:57,822 WARN [liferay/mail-1][MailEngine:560] Failed to connect to a valid mail server. Please make sure one is properly configured. Could not connect to SMTP host: smtp.gmail.com, port: 587
Juhi Kumari
RE: Configure Email server for liferay
20 de noviembre de 2012 20:14
Respuesta

Juhi Kumari

Ranking: Expert

Mensajes: 347

Fecha de incorporación: 12 de diciembre de 2011

Mensajes recientes

Hi,

Use port no as
1mail.session.mail.smtp.port=465


and make sure your your gmail id and password are correct.

Regards
Juhi
asif aftab
RE: Configure Email server for liferay
21 de enero de 2014 11:20
Respuesta

asif aftab

Ranking: Junior Member

Mensajes: 95

Fecha de incorporación: 2 de septiembre de 2013

Mensajes recientes

Add this lines of code in your portal-ext.properties

mail.session.mail.pop3.host=pop.gmail.com

mail.session.mail.pop3.password=PASSWORD

mail.session.mail.pop3.port=110

mail.session.mail.pop3.user=USER

mail.session.mail.imap.host=imap.gmail.com

mail.session.mail.imap.port=993

mail.session.mail.store.protocol=imap

mail.session.mail.transport.protocol=smtp

mail.session.mail.smtp.host=smtp.gmail.com

mail.session.mail.smtp.password=PASSWD

mail.session.mail.smtp.user=USERID@gmail.com

mail.session.mail.smtp.port=465

mail.session.mail.smtp.auth=true

mail.session.mail.smtp.starttls.enable=true

mail.session.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory



* Please user your password in place of PASSWD and your gmail user id in place of USERID.

By three different ways we can configure mail server in Liferay. I am using Liferay 6.2 and initially I got an error that could not connect to smtp host localhost port 25 in liferay by using different code. So I used above code and my mail server is configured properly and my application is able to send mail to the user in forgot password case.

And please see this link. This link help me to solve the issue.

https://www.permeance.com.au/web/tim.telcik/home/-/blogs/how-do-i-configure-liferay-portal-to-use-google-mail

Thanks

asif aftab