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: How to set mailto that refers to ROOT.xml ?
Hi,
Does anyone know how to configure Liferay to read from ROOT.xml when there is mailto added ? Currently, when I click at mailto, it will direct the link to the local mail application and refer to the mail settings in the mail application.
Please help. Thanks
Does anyone know how to configure Liferay to read from ROOT.xml when there is mailto added ? Currently, when I click at mailto, it will direct the link to the local mail application and refer to the mail settings in the mail application.
Please help. Thanks
Hi,
hitting a "mailto"-link will always open the "default" mail application. This is the specified behaviour.
You will need to write a "mail"-application in java as portlet which uses Liferay's mail API to send emails.
kind regards
Tobias
hitting a "mailto"-link will always open the "default" mail application. This is the specified behaviour.
You will need to write a "mail"-application in java as portlet which uses Liferay's mail API to send emails.
kind regards
Tobias
Wong SK:
Hi,
Does anyone know how to configure Liferay to read from ROOT.xml when there is mailto added ? Currently, when I click at mailto, it will direct the link to the local mail application and refer to the mail settings in the mail application.
Please help. Thanks
use this in ur root.xml file
<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="smtp.gmail.com"
mail.pop.host="smtp.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="urgmailid@gmail.com"
password="urgmailpassword"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>
HTH.