Sha256: 533eec85838ec1fb8a82cebff08d8a17eed576f42a6f90e4f9536878db7b2b18
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 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 def self.send_error(error) Mail.deliver do from Config.option(:smtp, :from_email) to Config.option(:smtp, :to_email) subject 'Error occurred during Fuck Facebook command' body error.full_message(highlight: false) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fuck_facebook-0.4.1 | src/senders/email.rb |
fuck_facebook-0.4.0 | src/senders/email.rb |