Sha256: 6a7611722d610629d121c691daad6d6b5763b01aca7cb85ebc8660efa6422631
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
module RestPack::Service::Messaging::Commands module Email class Send < RestPack::Service::Command required do integer :application_id string :from #TODO: GJ: add email validation string :to string :subject string :text_body end optional do string :cc string :bcc string :reply_to string :html_body end def execute job_id = Rubykiq.push( class: 'Jobs::Email::Send', queue: 'email', args: [inputs] ) { job_id: job_id } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restpack_service_messaging-0.0.2 | lib/restpack_service_messaging/commands/email/send.rb |