Re: Pick up mailserver in a template?
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <OF24ED5B8C.BD4D6808-ONC12570A7.0046A293-C12570A7.0046A298@generic.se> |
Now it works! Run into some problems because the "sendMessage" method I tried to call has a little bug (formal parameter mailhost has same name as instance member mailhost and if the paremeter is null the default mailhost is not used). When I realized this I could easily find another sendMessage method without the mailhost parameter and this one works fine. org.jahia.services.mail.MailService ms = org.jahia.services.mail.MailService.getInstance(); ms.sendMessage(From,To,null,null,"MySubject","Hello world"); // Works ms.sendMessage(From,To,null,null,"MySubject",null,"Hello world"); // Never works Regards /Lars Hagrot