AnsweredAssumed Answered

MailActionExecuter.PARAM_TO_MANY parameter not working

Question asked by nowhere on Apr 12, 2010
Latest reply on May 4, 2010 by feedler
Hi all,
I was using with previuos Alfresco Version this code:

                      Action mailAction1 = this.actionService.createAction(MailActionExecuter.NAME);
            MailActionExecuter.PARAM_SUBJECT , "Some questions");
            mailAction1.setParameterValue(MailActionExecuter.PARAM_TO_MANY , recipients);
            mailAction1.setParameterValue(MailActionExecuter.PARAM_FROM,   "");
            mailAction1.setParameterValue(MailActionExecuter.PARAM_TEXT, "Your txt here ");
            this.actionService.executeAction(mailAction1, null);

but now, using PARAMETER_TO_MANY causes exception:

User:prova4 ERROR [action.executer.MailActionExecuter] Failed to se
nd email to
org.springframework.mail.MailPreparationException: Could not prepare mail; neste
d exception is java.lang.NullPointerException
Caused by: java.lang.NullPointerException
        at com.sun.mail.smtp.SMTPTransport.sendMessage(

I saw the problem, in SMTPTransport class is on "addresse" that are null.

Can anyone tell me how to send email to multiple recipients with a ";" separated list?

Thanks in advance!