AnsweredAssumed Answered

'From' field at sending email

Question asked by palba on Jan 7, 2010
Latest reply on Aug 22, 2011 by uskiki85
Hi all.

I have a little problem, and i've been unable to find a solition trougth the documentation, so here it is…

As a part of a workflow, I have to send an email to the user. I do it with the following javascript code:

var mail = actions.create("mail");
mail.parameters.to = "test@test.com";
mail.parameters.subject = "You have a new task";
mail.parameters.from = "server@server.com";
mail.parameters.text = "You have a new task.\n\nhttp://…";
mail.execute(bpm_package);

That works, the mail is sent, and the user recives it. But the mail cames from the email direction of the user who advance the workflow, instead of coming from the address specified ( "server@server.com").

What am I doing wrong?

Thxs in advance…

Outcomes