01-12-2012 07:26 AM
01-12-2012 07:44 AM
01-12-2012 07:56 AM
You will need to change the Mail Action Executor class. Or replace it with your own version.
This is a known issue.
01-12-2012 08:13 AM
01-12-2012 08:19 AM
01-18-2012 06:52 AM
01-19-2012 08:16 AM
06-28-2012 08:23 PM
// set the from address
String fromActualUser = null;
if (fromPerson != null)
{
fromActualUser = (String) nodeService.getProperty(fromPerson, ContentModel.PROP_EMAIL);
}
String from = (String)ruleAction.getParameterValue(PARAM_FROM);
if (from == null || from.length() == 0)
{
if (fromActualUser != null && fromActualUser.length() != 0)
{
message.setFrom(fromActualUser);
}
else
{
message.setFrom(fromAddress);
}
else
{
message.setFrom(from);
}
}
Is the action initiated by a user?
If so, get the users email address.
Was a from address not set manually by this script?
If so, did we get a user above who had an email address?
If so, use that address
If not, use the default from address
If not (ie there was a from address set manually) use that
Or, to put it differently-
Prefer to use a manually set from address from the script if it exists (why would it be set manually if not to be used?)
If that is lacking, try to get the initiating users email address and use that
if it wasn't a normal user who initiated it, or it was and they have no email address, use the default (fallback)
06-29-2012 04:37 AM
07-02-2012 08:01 PM
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.