Sha256: 2fe184de77470473c2732a9c0a2df93aa910d272c0d2b98ce5238dc099fb39b8
Contents?: true
Size: 756 Bytes
Versions: 5
Compression:
Stored size: 756 Bytes
Contents
require "mail" module Ezframe class Email class << self def receive end # options = # :address => "smtp.server.host", # :port => 1025, # :user_name => login user, # :password => login password, # :authentication => 'plain', # :ssl => true, def setup_smtp(options) Mail.defaults do delivery_method :smtp, options end end def send(data) mail = Mail.new do from data[:mail_from] to data[:mail_to] subject data[:subject] body data[:body] end mail.deliver! end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ezframe-0.4.0 | lib/ezframe/email.rb |
ezframe-0.3.0 | lib/ezframe/email.rb |
ezframe-0.2.0 | lib/ezframe/email.rb |
ezframe-0.1.1 | lib/ezframe/email.rb |
ezframe-0.1.0 | lib/ezframe/email.rb |