Sha256: 5163e47b38b22c44b6726ac5fe837f1ece5c80ab76c5cdbc6b7617a7e4c346a9

Contents?: true

Size: 360 Bytes

Versions: 5

Compression:

Stored size: 360 Bytes

Contents

module Senders
  class Email
    def self.send_messages(messages)
      messages.each do |message|
        Mail.deliver do
          from Config.option(:smtp, :from_email)
          to Config.option(:smtp, :to_email)
          subject "New Facebook message on chat #{message.message_thread}"
          body message.text
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fuck_facebook-0.3.0 src/senders/email.rb
fuck_facebook-0.2.1 src/senders/email.rb
fuck_facebook-0.1.2 src/senders/email.rb
fuck_facebook-0.1.1 src/senders/email.rb
fuck_facebook-0.1.0 src/senders/email.rb