Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Need Help - How to configure IMAIL (Gmail with Liferay)
Hi,
I have configues the below settings into Root.xml file.
<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="imap.gmail.com"
mail.imap.port="993"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
mail.smtp.host="smtp.gmail.com "
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.user="MyAcc@gmail.com"
password="MyPassword"
/>
but when running the liferay getting the error "You have failed to connect to IMAP and SMTP Server"
Please let me know what else i missed and what are the steps to configure Gmail/SMTP Mail server with Liferay portal.
Thanks
Himanshu Bhargav
I have configues the below settings into Root.xml file.
<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="imap.gmail.com"
mail.imap.port="993"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
mail.smtp.host="smtp.gmail.com "
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.user="MyAcc@gmail.com"
password="MyPassword"
/>
but when running the liferay getting the error "You have failed to connect to IMAP and SMTP Server"
Please let me know what else i missed and what are the steps to configure Gmail/SMTP Mail server with Liferay portal.
Thanks
Himanshu Bhargav
Hi,
Please try setting following properties in portal-ext.properties
Regards,
Sandeep
Please try setting following properties in portal-ext.properties
mail.session.mail.pop3.host=localhost
mail.session.mail.pop3.password=
mail.session.mail.pop3.port=110
mail.session.mail.pop3.user=
mail.session.mail.smtp.auth=false
mail.session.mail.smtp.host=localhost
mail.session.mail.smtp.password=
mail.session.mail.smtp.port=25
mail.session.mail.smtp.user=
mail.session.mail.store.protocol=pop3
mail.session.mail.transport.protocol=smtpRegards,
Sandeep
Hi Sandeep,
Still have the same problem.
You have failed to connect to IMAP and SMTP Server.
Himanshu Bhargav
Still have the same problem.
You have failed to connect to IMAP and SMTP Server.
Himanshu Bhargav
Himanshu Bhargav:
Hi Sandeep,
Still have the same problem.
You have failed to connect to IMAP and SMTP Server.
Himanshu Bhargav
Hi sandeep,
I am using IMAP so i have changes the settings. Please let me know is there any need to do the changes??
mail.session.mail.imap.host=imap.gmail.com
mail.session.mail.imap.port=993
mail.session.mail.smtp.auth=true
mail.session.mail.smtp.host=smtp.gmail.com
mail.session.mail.smtp.port=2525
mail.session.mail.smtp.user=mymail@gmail.com
mail.session.mail.smtp.password=mypassword
mail.session.mail.store.protocol=imap
mail.session.mail.transport.protocol=smtp