Sha256: 763fef1959486ef71fe2e470fc7ff29f2b1a2725d8ebc637bac2ca3cc531c95f
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
require 'mail' require 'yaml' class Notifier @@config = YAML::load_file(File.join('~/.poe', 'config.yml') def send_mail(options => {:from => ENV['AUTHOR'], :to => @@config["to"], :body => ENV["OUTPUT"]}) mail = Mail.new do from options[:from] to options[:to] subject options[:subject] body options[:body] end mail.deliver! end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
poe-0.0.2 | hooks/common.rb |