Class | Ruote::SmtpParticipant |
In: |
lib/ruote/part/smtp_participant.rb
|
Parent: | Object |
A very stupid SMTP participant.
@engine.register_participant( :no_good_notification, Ruote::SmtpParticipant, :server => 'smtp.example.com' :port => 25, :to => 'toto@example.com', :from => 'john@example.com', :notification => true, :template => "Subject: ${f:email_subject}\n\nno good.")
Process variable / workitem field substitution works the same as in process definitions (in this example, the workitem field email_subject will be used as the subject of the email…)
The target of the email is either given via the workitem field ‘email_target’, either by the option :to. The workitem field takes precedence if both are present.
This parameter/option may be either a single (string) email address, either an array of (string) email addresses.
This participant cannot read POP/IMAP accounts for you. You have to use a mail listener or get a web reply by placing a link in the message…