01-07-2010 04:07 AM
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);
01-07-2010 12:07 PM
// set the from address
NodeRef person = personService.getPerson(authService.getCurrentUserName());
String fromActualUser = (String)nodeService.getProperty(person, ContentModel.PROP_EMAIL);
if( fromActualUser != null && fromActualUser.length() != 0)
{
message.setFrom(fromActualUser);
}
else
{
String from = (String)ruleAction.getParameterValue(PARAM_FROM);
if (from == null || from.length() == 0)
{
message.setFrom(fromAddress);
}
else
{
message.setFrom(from);
}
}
01-08-2010 02:46 AM
08-18-2011 09:39 AM
08-18-2011 09:57 AM
08-22-2011 05:48 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.