lib/openwfe/participants/enoparticipants.rb in openwferu-0.9.12.863 vs lib/openwfe/participants/enoparticipants.rb in openwferu-0.9.13
- old
+ new
@@ -67,9 +67,15 @@
# s << "\n"
# s << "it's #{Time.new.to_s} and you've got mail"
# s
# end
#
+ # As with EmailNotificationParticipant, the "to" address for your email
+ # is taken from the workitem's <tt>email_target</tt> field. So, to have
+ # the email sent to "foo@nowhere.com", set your workitem's
+ # <tt>email_target</tt> field to "foo@nowhere.com" prior to feeding it
+ # to the mail participant.
+ #
# When passing the mail template as a block, you have
# four possible arities :
# { |workitem| ... }
# { |participant_expression, workitem| ... }
# { |participant_expression, participant_instance, workitem| ... }