[magnolia-dev] Re: sending Simple Mail with 4.5.4 - how?

2012-11-19 Thread Andreas Klaus (via Magnolia Forums)
Hi Jan, thank you for your great help! (final MgnlEmail email = mailFactory.getEmailFromType(new HashMap(), null); has no effect … ;-( Here is my complete stack trace: [#|2012-11-19T09:34:40.286+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=21;

[magnolia-dev] Re: sending Simple Mail with 4.5.4 - how?

2012-11-15 Thread Andreas Klaus (via Magnolia Forums)
Hi Jan, no mailFactory is ok but the call final MgnlEmail email = mailFactory.getEmailFromType(new HashMap(), mailType); results in email is null! MailModule is installed … Is my code right? Whats wrong? My code again: private void sendErrorMail(String message, String subject, String reci

[magnolia-dev] Re: sending Simple Mail with 4.5.4 - how?

2012-11-14 Thread Andreas Klaus (via Magnolia Forums)
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) ModuleReg

[magnolia-dev] Re: sending Simple Mail with 4.5.4 - how?

2012-11-14 Thread Andreas Klaus (via Magnolia Forums)
Yes, here it is: email.setBody(message); if i uncomment it then email.setToList(recipientList); throws a null pointer .. ? Is there no standard to send a simple email via magnolia? I have a importer, if it fails he should send a mail … Thank you!! [#|2012-11-14T11:28:18.389+0100|SEVERE|glass

[magnolia-dev] sending Simple Mail with 4.5.4 - how?

2012-11-04 Thread Andreas Klaus (via Magnolia Forums)
I try to send a simple plain text mail with the magnolia api- but i always get null pointer exception: Plz Help! private void sendErrorMail(String message, String subject, String recipientList) { try { final MgnlMailFactory mailFactory = ((MailModule) ModuleRegistry.Fact

[magnolia-dev] Date Module Import - importer - deleteOldData Exception - why?

2012-11-01 Thread Andreas Klaus (via Magnolia Forums)
Hi there, I've created a small example importer for importing data into Magnolia. And so far it works fine: public class NoteImportHandler extends ImportHandler { private Logger log = LoggerFactory.getLogger(NoteImportHandler.class); protected Set doImport(ImportTarget traget, Content