The principal problem is here.
I've changed the string into an array, but when I pass the @message as a parameter @message.emails is casting to an string.
So that loop will be an once-loop.
I've tried also do @message.email.split(",") but doesn't work.
I think it would be great if @message would be an array (how it should be)