Sry ..
mail seems to be null so mailFactory.getEmailFromType(new HashMap(), mailType); 
fails …

Whats the right implementation to send a simple text mail in magnolia? The 
example below came from magnolia sources ... 

Thank you!
Klaus

 final MgnlMailFactory mailFactory = ((MailModule) 
ModuleRegistry.Factory.getInstance().getModuleInstance("mail")).getFactory();
 String mailType = MailConstants.MAIL_TEMPLATE_SIMPLE;
 final MgnlEmail email = mailFactory.getEmailFromType(new HashMap(), mailType);

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=e4e9a298-5e07-456a-a266-7593697f972c


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to