Pick up mailserver in a template?

[email protected]
Newsgroups gmane.comp.cms.jahia.template
Message-ID <OF8C391F18.12497690-ONC12570A1.00291F0F-C12570A1.00291F14@generic.se>
I am sending mail from a template (posting parameters from a html form) and everything works perfectly.

Now I want to retreive configured mailserver from the server settings.

What is the preferred way to do this.

....

String mailserver = ?;

org.jahia.services.mail.MailService ms = org.jahia.services.mail.MailService.getInstance();
ms.sendMessage(from,to,null,null,subject,mailserver,message );

....

Regards

/Lars Hagrot

...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.