Return a string describing this mailet.returna string describing this mailet return "Set Mail Attribute Mailet";
return "Set Mail Attribute Mailet";
Initialize the mailetthrowsMailetException if the processor parameter is missing Iterator iter = getInitParameterNames(); while (iter.hasNext()) { String name = iter.next().toString(); String value = getInitParameter (name); attributesToSet.put (name,value); } entries = attributesToSet.entrySet();
Iterator iter = getInitParameterNames(); while (iter.hasNext()) { String name = iter.next().toString(); String value = getInitParameter (name); attributesToSet.put (name,value); } entries = attributesToSet.entrySet();
Sets the configured attributesparammail the mail to processthrowsMessagingException in all cases if (entries != null) { Iterator iter = entries.iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); mail.setAttribute ((String)entry.getKey(),(Serializable)entry.getValue()); } }
if (entries != null) { Iterator iter = entries.iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); mail.setAttribute ((String)entry.getKey(),(Serializable)entry.getValue()); } }