RE: How to set mailto that refers to ROOT.xml ?

1309630, modified 17 Years ago. New Member Posts: 2 Join Date: 9/16/08 Recent Posts
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
thumbnail
34461, modified 17 Years ago. Liferay Master Posts: 546 Join Date: 8/8/07 Recent Posts
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
thumbnail
1127064, modified 17 Years ago. Regular Member Posts: 116 Join Date: 7/30/08 Recent Posts
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.