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

 
 
 

Reply via email to