Sha256: 8a9e48264ea1c71dfd486a91baf7c221e9968f2ebc6450e70d110ab080ae3ec9
Contents?: true
Size: 855 Bytes
Versions: 4
Compression:
Stored size: 855 Bytes
Contents
module Cloudfuji class SMTP class << self [:tls, :server, :port, :domain, :authentication, :user, :password].each do |method_name| define_method "#{method_name}".to_sym do ENV["SMTP_#{method_name.to_s.upcase}"] end end def setup_action_mailer_smtp! ActionMailer::Base.smtp_settings = { :enable_starttls_auto => Cloudfuji::SMTP.tls, :tls => Cloudfuji::SMTP.tls, :address => Cloudfuji::SMTP.server, :port => Cloudfuji::SMTP.port, :domain => Cloudfuji::SMTP.domain, :authentication => Cloudfuji::SMTP.authentication, :user_name => Cloudfuji::SMTP.user, :password => Cloudfuji::SMTP.password, } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cloudfuji-0.0.40 | lib/cloudfuji/smtp.rb |
cloudfuji-0.0.39 | lib/cloudfuji/smtp.rb |
cloudfuji-0.0.38 | lib/cloudfuji/smtp.rb |
cloudfuji-0.0.37 | lib/cloudfuji/smtp.rb |