Class: CommandTower::Configuration::Email::Config
- Includes:
- ClassComposer::Generator
- Defined in:
- lib/command_tower/configuration/email/config.rb
Constant Summary collapse
- ASSIGNMENT =
Proc.new do |key, value| hash = Rails.configuration.action_mailer.smtp_settings ||= {} Rails.configuration.action_mailer.smtp_settings = hash.merge({key => value}) end
- ACTION_MAILER =
Proc.new do |key, value| Rails.configuration.action_mailer.public_send(:"#{key}=", value) end
Instance Method Summary collapse
Instance Method Details
#gmail!(from: , password: , port: 587, address: "smtp.gmail.com", authentication: "plain", enable_starttls_auto: true) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/command_tower/configuration/email/config.rb', line 69 def gmail!( from: ENV["GMAIL_USER_NAME"], password: ENV["GMAIL_PASSWORD"], port: 587, address: "smtp.gmail.com", authentication: "plain", enable_starttls_auto: true ) method(:from=).call(from) method(:password=).call(password) method(:port=).call(port) method(:address=).call(address) method(:authentication=).call(authentication) method(:enable_starttls_auto=).call(enable_starttls_auto) end |