# File lib/ruote/part/smtp_participant.rb, line 88
    def consume(workitem)

      to = workitem.fields['email_target'] || @opts['to']
      to = Array(to)

      text = render_template(
        @opts['template'],
        Ruote::Exp::FlowExpression.fetch(@context, workitem.fei.to_h),
        workitem)

      server = @opts['server'] || '127.0.0.1'
      port = @opts['port'] || 25

      Net::SMTP.start(server, port) do |smtp|
        smtp.send_message(text, @opts['from'] || 'ruote@example.org', *to)
      end

      reply_to_engine(workitem) if @opts['notification']
    end